mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-29 21:59:02 +00:00
Merge branch '2.2.x'
Closes gh-19188
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ class UserVehicleControllerTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
void welcomeCommandLineRunnerShouldBeAvailable() {
|
||||
void welcomeCommandLineRunnerShouldNotBeAvailable() {
|
||||
// Since we're a @WebMvcTest WelcomeCommandLineRunner should not be available.
|
||||
Assertions.assertThatThrownBy(() -> this.applicationContext.getBean(WelcomeCommandLineRunner.class))
|
||||
.isInstanceOf(NoSuchBeanDefinitionException.class);
|
||||
|
||||
Reference in New Issue
Block a user