Browse Source

Polish test method name to reflect its expectation

Closes gh-19186
pull/19197/head
Andy Wilkinson 6 years ago
parent
commit
2be3057904
  1. 2
      spring-boot-samples/spring-boot-sample-test/src/test/java/sample/test/web/UserVehicleControllerTests.java

2
spring-boot-samples/spring-boot-sample-test/src/test/java/sample/test/web/UserVehicleControllerTests.java

@ -93,7 +93,7 @@ public class UserVehicleControllerTests {
} }
@Test(expected = NoSuchBeanDefinitionException.class) @Test(expected = NoSuchBeanDefinitionException.class)
public void welcomeCommandLineRunnerShouldBeAvailable() { public void welcomeCommandLineRunnerShouldNotBeAvailable() {
// Since we're a @WebMvcTest WelcomeCommandLineRunner should not be available. // Since we're a @WebMvcTest WelcomeCommandLineRunner should not be available.
this.applicationContext.getBean(WelcomeCommandLineRunner.class); this.applicationContext.getBean(WelcomeCommandLineRunner.class);
} }

Loading…
Cancel
Save