public class WebTestContextBootstrapper extends DefaultTestContextBootstrapper
TestContextBootstrapper
SPI の Web 固有の実装。@WebAppConfiguration
のアノテーションが付けられている場合は WebDelegatingSmartContextLoader
をデフォルトの ContextLoader
として使用し、そうでない場合はスーパークラスに委譲します。@WebAppConfiguration
アノテーションが付けられている場合、WebMergedContextConfiguration
をビルドします。コンストラクターと説明 |
---|
WebTestContextBootstrapper() |
修飾子と型 | メソッドと説明 |
---|---|
protected ClassSE<? extends ContextLoader> | getDefaultContextLoaderClass(ClassSE<?> testClass) 指定されたクラスに @WebAppConfiguration アノテーションが付けられている場合は WebDelegatingSmartContextLoader を返し、そうでない場合はスーパークラスに委譲します。 |
protected MergedContextConfiguration | processMergedContextConfiguration(MergedContextConfiguration mergedConfig) 指定された MergedContextConfiguration のテストクラスに @WebAppConfiguration のアノテーションが付けられている場合は WebMergedContextConfiguration を返し、それ以外の場合は指定されたインスタンスを変更せずに返します。 |
buildMergedContextConfiguration, buildTestContext, getBootstrapContext, getCacheAwareContextLoaderDelegate, getContextCustomizerFactories, getDefaultTestExecutionListenerClasses, getDefaultTestExecutionListenerClassNames, getTestExecutionListeners, resolveContextLoader, resolveExplicitContextLoaderClass, setBootstrapContext
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
protected ClassSE<? extends ContextLoader> getDefaultContextLoaderClass(ClassSE<?> testClass)
@WebAppConfiguration
アノテーションが付けられている場合は WebDelegatingSmartContextLoader
を返し、そうでない場合はスーパークラスに委譲します。DefaultTestContextBootstrapper
の getDefaultContextLoaderClass
testClass
- デフォルトの ContextLoader
クラスを取得するテストクラス ContextLoader
クラス (非 null
)protected MergedContextConfiguration processMergedContextConfiguration(MergedContextConfiguration mergedConfig)
MergedContextConfiguration
のテストクラスに @WebAppConfiguration
のアノテーションが付けられている場合は WebMergedContextConfiguration
を返し、それ以外の場合は指定されたインスタンスを変更せずに返します。AbstractTestContextBootstrapper
の processMergedContextConfiguration
mergedConfig
- 処理する MergedContextConfiguration
。null
MergedContextConfiguration
; null