Merge branch '2.1.x' into 2.2.x

Closes gh-19187
pull/19328/head
Andy Wilkinson 5 years ago
commit aad63873c1

@ -91,7 +91,7 @@ class UserVehicleControllerTests {
} }
@Test @Test
void welcomeCommandLineRunnerShouldBeAvailable() { void welcomeCommandLineRunnerShouldNotBeAvailable() {
// Since we're a @WebMvcTest WelcomeCommandLineRunner should not be available. // Since we're a @WebMvcTest WelcomeCommandLineRunner should not be available.
Assertions.assertThatThrownBy(() -> this.applicationContext.getBean(WelcomeCommandLineRunner.class)) Assertions.assertThatThrownBy(() -> this.applicationContext.getBean(WelcomeCommandLineRunner.class))
.isInstanceOf(NoSuchBeanDefinitionException.class); .isInstanceOf(NoSuchBeanDefinitionException.class);

Loading…
Cancel
Save