Class DefaultTestContextBootstrapper
java.lang.Object
org.springframework.test.context.support.AbstractTestContextBootstrapper
org.springframework.test.context.support.DefaultTestContextBootstrapper
- All Implemented Interfaces:
TestContextBootstrapper
- Direct Known Subclasses:
WebTestContextBootstrapper
Default implementation of the
TestContextBootstrapper SPI.
Uses DelegatingSmartContextLoader as the default ContextLoader.
- Since:
- 4.1
- Author:
- Sam Brannen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<? extends ContextLoader> getDefaultContextLoaderClass(Class<?> testClass) ReturnsDelegatingSmartContextLoader.Methods inherited from class AbstractTestContextBootstrapper
buildMergedContextConfiguration, buildTestContext, getBootstrapContext, getCacheAwareContextLoaderDelegate, getContextCustomizerFactories, getDefaultTestExecutionListeners, getTestExecutionListeners, processMergedContextConfiguration, resolveContextLoader, resolveExplicitContextLoaderClass, setBootstrapContext
-
Constructor Details
-
DefaultTestContextBootstrapper
public DefaultTestContextBootstrapper()
-
-
Method Details
-
getDefaultContextLoaderClass
ReturnsDelegatingSmartContextLoader.- Specified by:
getDefaultContextLoaderClassin classAbstractTestContextBootstrapper- Parameters:
testClass- the test class for which to retrieve the defaultContextLoaderclass- Returns:
- the default
ContextLoaderclass for the supplied test class (nevernull)
-