クラス 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 MergedContextConfiguration- processMergedContextConfiguration- (MergedContextConfiguration mergedConfig) 指定された- MergedContextConfigurationのテストクラスに- @WebAppConfigurationのアノテーションが付けられている場合は- WebMergedContextConfigurationを返し、それ以外の場合は指定されたインスタンスを変更せずに返します。- クラス org.springframework.test.context.support.AbstractTestContextBootstrapper から継承されたメソッド- buildMergedContextConfiguration, buildTestContext, getBootstrapContext, getCacheAwareContextLoaderDelegate, getContextCustomizerFactories, getDefaultTestExecutionListeners, getTestExecutionListeners, resolveContextLoader, resolveExplicitContextLoaderClass, setBootstrapContext
- コンストラクターの詳細- WebTestContextBootstrapperpublic WebTestContextBootstrapper()
 
- メソッドの詳細- getDefaultContextLoaderClass指定されたクラスに- @WebAppConfigurationアノテーションが付けられている場合は- WebDelegatingSmartContextLoaderを返し、そうでない場合はスーパークラスに委譲します。- オーバーライド:
-  クラス DefaultTestContextBootstrapperのgetDefaultContextLoaderClass
- パラメーター:
- testClass- デフォルトの- ContextLoaderクラスを取得するテストクラス
- 戻り値:
-  指定されたテストクラスのデフォルト ContextLoaderクラス (非null)
 
- processMergedContextConfigurationprotected MergedContextConfiguration processMergedContextConfiguration- (MergedContextConfiguration mergedConfig) 指定された- MergedContextConfigurationのテストクラスに- @WebAppConfigurationのアノテーションが付けられている場合は- WebMergedContextConfigurationを返し、それ以外の場合は指定されたインスタンスを変更せずに返します。- オーバーライド:
-  クラス AbstractTestContextBootstrapperのprocessMergedContextConfiguration
- パラメーター:
- mergedConfig- 処理する- MergedContextConfiguration。- null
- 戻り値:
-  完全に初期化された MergedContextConfiguration;null