Merge branch '2.1.x' into 2.2.x

Closes gh-19187
This commit is contained in:
Andy Wilkinson 2019-11-29 09:12:36 +00:00
commit aad63873c1

View File

@ -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);