Skip to content

Commit 2be3057

Browse files
committed
Polish test method name to reflect its expectation
Closes gh-19186
1 parent f3be59c commit 2be3057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public void getVehicleWhenVinNotFoundShouldReturnNotFound() throws Exception {
9393
}
9494

9595
@Test(expected = NoSuchBeanDefinitionException.class)
96-
public void welcomeCommandLineRunnerShouldBeAvailable() {
96+
public void welcomeCommandLineRunnerShouldNotBeAvailable() {
9797
// Since we're a @WebMvcTest WelcomeCommandLineRunner should not be available.
9898
this.applicationContext.getBean(WelcomeCommandLineRunner.class);
9999
}

0 commit comments

Comments
 (0)