Browse Source

Merge branch '2.1.x' into 2.2.x

Closes gh-19187
pull/19328/head
Andy Wilkinson 6 years ago
parent
commit
aad63873c1
  1. 2
      spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-test/src/test/java/smoketest/test/web/UserVehicleControllerTests.java

2
spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-test/src/test/java/smoketest/test/web/UserVehicleControllerTests.java

@ -91,7 +91,7 @@ class UserVehicleControllerTests { @@ -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);

Loading…
Cancel
Save