Package org.springframework.test.context
Interface BootstrapContext
- All Known Implementing Classes:
DefaultBootstrapContext
public interface BootstrapContext
BootstrapContextencapsulates the context in which the Spring TestContext Framework is bootstrapped.- Since:
- 4.1
- Author:
- Sam Brannen
- See Also:
BootstrapWith,TestContextBootstrapper
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CacheAwareContextLoaderDelegategetCacheAwareContextLoaderDelegate()Get theCacheAwareContextLoaderDelegateto use for transparent interaction with theContextCache.Class<?>getTestClass()Get the test class for this bootstrap context.
Method Detail
getTestClass
Class<?> getTestClass()
Get the test class for this bootstrap context.- Returns:
- the test class (never
null)
getCacheAwareContextLoaderDelegate
CacheAwareContextLoaderDelegate getCacheAwareContextLoaderDelegate()
Get theCacheAwareContextLoaderDelegateto use for transparent interaction with theContextCache.- Returns:
- the context loader delegate (never
null)