Class DefaultBootstrapContext
java.lang.Object
org.springframework.test.context.support.DefaultBootstrapContext
- All Implemented Interfaces:
BootstrapContext
Default implementation of the
BootstrapContext
interface.- Since:
- 4.1
- Author:
- Sam Brannen
-
Constructor Summary
ConstructorDescriptionDefaultBootstrapContext
(Class<?> testClass, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate) Construct a newDefaultBootstrapContext
from the supplied arguments. -
Method Summary
Modifier and TypeMethodDescriptionGet theCacheAwareContextLoaderDelegate
to use for transparent interaction with theContextCache
.Class<?>
Get the test class for this bootstrap context.toString()
Provide a String representation of this bootstrap context's state.
-
Constructor Details
-
DefaultBootstrapContext
public DefaultBootstrapContext(Class<?> testClass, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate) Construct a newDefaultBootstrapContext
from the supplied arguments.- Parameters:
testClass
- the test class for this bootstrap context; nevernull
cacheAwareContextLoaderDelegate
- the context loader delegate to use for transparent interaction with theContextCache
; nevernull
-
-
Method Details
-
getTestClass
Get the test class for this bootstrap context.- Specified by:
getTestClass
in interfaceBootstrapContext
- Returns:
- the test class (never
null
)
-
getCacheAwareContextLoaderDelegate
Get theCacheAwareContextLoaderDelegate
to use for transparent interaction with theContextCache
.- Specified by:
getCacheAwareContextLoaderDelegate
in interfaceBootstrapContext
- Returns:
- the context loader delegate (never
null
)
-
toString
Provide a String representation of this bootstrap context's state.
-