类 DefaultTestContextBootstrapper
- java.lang.Object
- org.springframework.test.context.support.AbstractTestContextBootstrapper
- org.springframework.test.context.support.DefaultTestContextBootstrapper
- 所有已实现的接口:
TestContextBootstrapper
- 直接已知子类:
WebTestContextBootstrapper
public class DefaultTestContextBootstrapper extends AbstractTestContextBootstrapper
Default implementation of theTestContextBootstrapper
SPI.Uses
DelegatingSmartContextLoader
as the defaultContextLoader
.- 从以下版本开始:
- 4.1
- 作者:
- Sam Brannen
构造器概要
构造器 构造器 说明 DefaultTestContextBootstrapper()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected Class<? extends ContextLoader>
getDefaultContextLoaderClass(Class<?> testClass)
ReturnsDelegatingSmartContextLoader
.从类继承的方法 org.springframework.test.context.support.AbstractTestContextBootstrapper
buildMergedContextConfiguration, buildTestContext, getBootstrapContext, getCacheAwareContextLoaderDelegate, getContextCustomizerFactories, getDefaultTestExecutionListenerClasses, getDefaultTestExecutionListenerClassNames, getTestExecutionListeners, processMergedContextConfiguration, resolveContextLoader, resolveExplicitContextLoaderClass, setBootstrapContext
构造器详细资料
DefaultTestContextBootstrapper
public DefaultTestContextBootstrapper()
方法详细资料
getDefaultContextLoaderClass
protected Class<? extends ContextLoader> getDefaultContextLoaderClass(Class<?> testClass)
ReturnsDelegatingSmartContextLoader
.- 指定者:
getDefaultContextLoaderClass
在类中AbstractTestContextBootstrapper
- 参数:
testClass
- the test class for which to retrieve the defaultContextLoader
class- 返回:
- the default
ContextLoader
class for the supplied test class (nevernull
)