@ -154,7 +154,7 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
@@ -154,7 +154,7 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
if(configClasses.isEmpty()){
if(logger.isInfoEnabled()){
logger.info(String.format("Cannot generate default configuration classes for test class [%s]: "
logger.info(String.format("Could not detect default configuration classes for test class [%s]: "
+"%s does not declare any static, non-private, non-final, inner classes "
+"annotated with @Configuration.",declaringClass.getName(),declaringClass.getSimpleName()));
@ -87,7 +87,7 @@ public class DelegatingSmartContextLoader implements SmartContextLoader {
@@ -87,7 +87,7 @@ public class DelegatingSmartContextLoader implements SmartContextLoader {
"Delegating to %s to generate defaults for context configuration [%s].",
"Delegating to %s to detect defaults for context configuration [%s].",
loader.getClass().getName(),configAttributes));
}
@ -96,7 +96,7 @@ public class DelegatingSmartContextLoader implements SmartContextLoader {
@@ -96,7 +96,7 @@ public class DelegatingSmartContextLoader implements SmartContextLoader {
+"generated defaults for context configuration [%s].",loader,configAttributes));
+"detected defaults for context configuration [%s].",loader,configAttributes));
}
}
}
@ -105,10 +105,8 @@ public class DelegatingSmartContextLoader implements SmartContextLoader {
@@ -105,10 +105,8 @@ public class DelegatingSmartContextLoader implements SmartContextLoader {
// If any loader claims to generate defaults but none actually did,
// throw an exception.
if(!configAttributes.hasResources()){
thrownewIllegalStateException(
String.format("None of the SmartContextLoader candidates %s "
+"was able to generate defaults for context configuration [%s].",candidates,
configAttributes));
thrownewIllegalStateException(String.format("None of the SmartContextLoader candidates %s "
+"was able to detect defaults for context configuration [%s].",candidates,configAttributes));