From 2be3057904d435282421fc33a093a600652f91a3 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 29 Nov 2019 09:10:26 +0000 Subject: [PATCH] Polish test method name to reflect its expectation Closes gh-19186 --- .../test/java/sample/test/web/UserVehicleControllerTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-samples/spring-boot-sample-test/src/test/java/sample/test/web/UserVehicleControllerTests.java b/spring-boot-samples/spring-boot-sample-test/src/test/java/sample/test/web/UserVehicleControllerTests.java index 1260b1976f7..f229e1db6fa 100644 --- a/spring-boot-samples/spring-boot-sample-test/src/test/java/sample/test/web/UserVehicleControllerTests.java +++ b/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) - public void welcomeCommandLineRunnerShouldBeAvailable() { + public void welcomeCommandLineRunnerShouldNotBeAvailable() { // Since we're a @WebMvcTest WelcomeCommandLineRunner should not be available. this.applicationContext.getBean(WelcomeCommandLineRunner.class); }