diff --git a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/SpringBootTestContextBootstrapper.java b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/SpringBootTestContextBootstrapper.java index 40970888546f..ef1f522c9ecd 100644 --- a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/SpringBootTestContextBootstrapper.java +++ b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/SpringBootTestContextBootstrapper.java @@ -244,7 +244,7 @@ private Class findConfigurationClass(Class testClass) { } Class found = new AnnotatedClassFinder(SpringBootConfiguration.class).findFromClass(testClass); Assert.state(found != null, "Unable to find a @SpringBootConfiguration, you need to use " - + "@ContextConfiguration or @SpringBootTest(classes=...) with your test"); + + "@ContextConfiguration or @SpringBootTest(classes=...) to include the class annotated with @SpringBootConfiguration for your test"); this.aotTestAttributes.setAttribute(propertyName, found.getName()); return found; }