クラス WebTestContextBootstrapper
java.lang.ObjectSE
org.springframework.test.context.support.AbstractTestContextBootstrapper
org.springframework.test.context.support.DefaultTestContextBootstrapper
org.springframework.test.context.web.WebTestContextBootstrapper
- 実装されているすべてのインターフェース:
TestContextBootstrapper
TestContextBootstrapper SPI の Web 固有の実装。- テストクラスに
@WebAppConfigurationのアノテーションが付けられている場合はWebDelegatingSmartContextLoaderをデフォルトのContextLoaderとして使用し、そうでない場合はスーパークラスに委譲します。 - テストクラスに
@WebAppConfigurationアノテーションが付けられている場合、WebMergedContextConfigurationをビルドします。
- 導入:
- 4.1
- 作成者:
- Sam Brannen
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected ClassSE<? extends ContextLoader> getDefaultContextLoaderClass(ClassSE<?> testClass) 指定されたクラスに@WebAppConfigurationアノテーションが付けられている場合はWebDelegatingSmartContextLoaderを返し、そうでない場合はスーパークラスに委譲します。protected MergedContextConfigurationprocessMergedContextConfiguration(MergedContextConfiguration mergedConfig) 指定されたMergedContextConfigurationのテストクラスに@WebAppConfigurationのアノテーションが付けられている場合はWebMergedContextConfigurationを返し、それ以外の場合は指定されたインスタンスを変更せずに返します。クラス AbstractTestContextBootstrapper から継承されたメソッド
buildMergedContextConfiguration, buildTestContext, getBootstrapContext, getCacheAwareContextLoaderDelegate, getContextCustomizerFactories, getDefaultTestExecutionListeners, getTestExecutionListeners, resolveContextLoader, resolveExplicitContextLoaderClass, setBootstrapContext
コンストラクターの詳細
WebTestContextBootstrapper
public WebTestContextBootstrapper()
メソッドの詳細
getDefaultContextLoaderClass
指定されたクラスに@WebAppConfigurationアノテーションが付けられている場合はWebDelegatingSmartContextLoaderを返し、そうでない場合はスーパークラスに委譲します。- オーバーライド:
- クラス
DefaultTestContextBootstrapperのgetDefaultContextLoaderClass - パラメーター:
testClass- デフォルトのContextLoaderクラスを取得するテストクラス- 戻り値:
- 指定されたテストクラスのデフォルト
ContextLoaderクラス (非null)
processMergedContextConfiguration
protected MergedContextConfiguration processMergedContextConfiguration(MergedContextConfiguration mergedConfig) 指定されたMergedContextConfigurationのテストクラスに@WebAppConfigurationのアノテーションが付けられている場合はWebMergedContextConfigurationを返し、それ以外の場合は指定されたインスタンスを変更せずに返します。- オーバーライド:
- クラス
AbstractTestContextBootstrapperのprocessMergedContextConfiguration - パラメーター:
mergedConfig- 処理するMergedContextConfiguration。null- 戻り値:
- 完全に初期化された
MergedContextConfiguration;null