Make AbsTstCtxBootstrapper.resolveContextLoader protected
This commit increases the extensibility of
AbstractTestContextBootstrapper by making the resolveContextLoader()
and resolveExplicitContextLoaderClass() methods protected instead of
private.
Furthermore, resolveContextLoader() now throws an IllegalStateException
if getDefaultContextLoaderClass() returns null.
Issue: SPR-12682
@ -390,8 +390,10 @@ public abstract class AbstractTestContextBootstrapper implements TestContextBoot
@@ -390,8 +390,10 @@ public abstract class AbstractTestContextBootstrapper implements TestContextBoot
Assert.notNull(testClass,"Class must not be null");
@ -400,6 +402,9 @@ public abstract class AbstractTestContextBootstrapper implements TestContextBoot
@@ -400,6 +402,9 @@ public abstract class AbstractTestContextBootstrapper implements TestContextBoot
thrownewIllegalStateException("getDefaultContextLoaderClass() must not return null");
}
}
if(logger.isTraceEnabled()){
logger.trace(String.format("Using ContextLoader class [%s] for test class [%s]",
@ -428,7 +433,7 @@ public abstract class AbstractTestContextBootstrapper implements TestContextBoot
@@ -428,7 +433,7 @@ public abstract class AbstractTestContextBootstrapper implements TestContextBoot
Assert.notEmpty(configAttributesList,"ContextConfigurationAttributes list must not be empty");
@ -451,12 +456,14 @@ public abstract class AbstractTestContextBootstrapper implements TestContextBoot
@@ -451,12 +456,14 @@ public abstract class AbstractTestContextBootstrapper implements TestContextBoot