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
-
Method Summary
Modifier and TypeMethodDescriptionprotected Class<? extends ContextLoader>
getDefaultContextLoaderClass
(Class<?> testClass) ReturnsDelegatingSmartContextLoader
.Methods inherited from class org.springframework.test.context.support.AbstractTestContextBootstrapper
buildMergedContextConfiguration, buildTestContext, getBootstrapContext, getCacheAwareContextLoaderDelegate, getContextCustomizerFactories, getDefaultTestExecutionListeners, getTestExecutionListeners, processMergedContextConfiguration, resolveContextLoader, resolveExplicitContextLoaderClass, setBootstrapContext
-
Constructor Details
-
DefaultTestContextBootstrapper
public DefaultTestContextBootstrapper()
-
-
Method Details
-
getDefaultContextLoaderClass
ReturnsDelegatingSmartContextLoader
.- Specified by:
getDefaultContextLoaderClass
in classAbstractTestContextBootstrapper
- Parameters:
testClass
- the test class for which to retrieve the defaultContextLoader
class- Returns:
- the default
ContextLoader
class for the supplied test class (nevernull
)
-