[SPR-6184] AnnotationConfigContextLoader now defines "$ContextConfiguration" as the resource suffix for generated default @Configuration class names.
This commit is contained in:
@@ -123,14 +123,19 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns "Config</code>"; intended to be used as a suffix
|
||||
* to append to the name of the test class when generating default
|
||||
* configuration class names.
|
||||
* Returns "$ContextConfiguration</code>"; intended to be used
|
||||
* as a suffix to append to the name of the test class when generating
|
||||
* default configuration class names.
|
||||
*
|
||||
* <p>Note: the use of a dollar sign ($) signifies that the resulting
|
||||
* class name refers to a nested <code>static</code> class within the
|
||||
* test class.
|
||||
*
|
||||
* @see #generateDefaultLocations(Class)
|
||||
*/
|
||||
@Override
|
||||
protected String getResourceSuffix() {
|
||||
return "Config";
|
||||
return "$ContextConfiguration";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user