[SPR-6184] AnnotationConfigContextLoader now defines "$ContextConfiguration" as the resource suffix for generated default @Configuration class names.

This commit is contained in:
Sam Brannen
2011-06-03 13:11:06 +00:00
parent 16fc083310
commit 39583d23fd
11 changed files with 60 additions and 128 deletions

View File

@@ -123,14 +123,19 @@ public class AnnotationConfigContextLoader extends AbstractGenericContextLoader
}
/**
* Returns &quot;Config</code>&quot;; intended to be used as a suffix
* to append to the name of the test class when generating default
* configuration class names.
* Returns &quot;$ContextConfiguration</code>&quot;; 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";
}
/**