クラスの使用 
org.springframework.test.context.MergedContextConfiguration
MergedContextConfiguration を使用するパッケージ 
 パッケージ 
 説明 
 このパッケージには Spring TestContext フレームワークが含まれており、使用中の実際のテストフレームワークにとらわれないアノテーション駆動型ユニットおよび統合テストのサポートを提供します。
Spring TestContext フレームワークの事前 (AOT) サポート。
Spring TestContext フレームワーク内のコンテキストキャッシングのサポート。
Spring TestContext フレームワークのサポートクラス。
Web は、Spring TestContext フレームワークのクラスをサポートします。
- org.springframework.test.context 内の MergedContextConfiguration 使用修飾子と型メソッド説明TestContextBootstrapper.- buildMergedContextConfiguration()このブートストラップに関連付けられた- BootstrapContext内のテストクラスのマージされたコンテキスト構成を構築します。MergedContextConfiguration.- getParent()コンテキスト階層内の親アプリケーションコンテキストの- MergedContextConfigurationを取得します。型 MergedContextConfiguration のパラメーターを持つ org.springframework.test.context のメソッド修飾子と型メソッド説明- voidCacheAwareContextLoaderDelegate.- closeContext- (MergedContextConfiguration mergedConfig, DirtiesContext.HierarchyMode hierarchyMode) 提供された- MergedContextConfigurationのアプリケーションコンテキストを- ContextCacheから削除し、それが- ConfigurableApplicationContextのインスタンスである場合は閉じます。- voidContextCustomizer.- customizeContext- (ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Bean 定義がコンテキストになく、コンテキストがリフレッシュされた前にロードされた後に供給- ConfigurableApplicationContextをカスタマイズします。- default booleanCacheAwareContextLoaderDelegate.- isContextLoaded- (MergedContextConfiguration mergedConfig) CacheAwareContextLoaderDelegate.- loadContext- (MergedContextConfiguration mergedConfig) 指定された- MergedContextConfigurationで構成された- ContextLoaderに委譲することにより、提供された- MergedContextConfigurationのアプリケーションコンテキストをロードします。SmartContextLoader.- loadContext- (MergedContextConfiguration mergedConfig) 提供された- MergedContextConfigurationに基づいて新しい- ApplicationContextをロードし、コンテキストを構成して、完全にリフレッシュされた状態でコンテキストを返します。型 MergedContextConfiguration のパラメーターを持つ org.springframework.test.context のコンストラクター修飾子コンストラクター説明- MergedContextConfiguration- (ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, StringSE[] propertySourceLocations, StringSE[] propertySourceProperties, SetSE<ContextCustomizer> contextCustomizers, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) 使用すべきではありません。- MergedContextConfiguration- (ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, StringSE[] propertySourceLocations, StringSE[] propertySourceProperties, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) - MergedContextConfiguration- (ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, ListSE<PropertySourceDescriptor> propertySourceDescriptors, StringSE[] propertySourceProperties, SetSE<ContextCustomizer> contextCustomizers, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) 指定されたパラメーターの新しい- MergedContextConfigurationインスタンスを作成します。- MergedContextConfiguration- (ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) 指定されたパラメーターの新しい- MergedContextConfigurationインスタンスを作成します。- MergedContextConfiguration- (MergedContextConfiguration mergedConfig) 提供された- MergedContextConfigurationからすべてのフィールドをコピーして、新しい- MergedContextConfigurationインスタンスを作成します。
- org.springframework.test.context.aot 内の MergedContextConfiguration 使用型 MergedContextConfiguration のパラメーターを持つ org.springframework.test.context.aot のメソッド修飾子と型メソッド説明AotContextLoader.- loadContextForAotProcessing- (MergedContextConfiguration mergedConfig) 提供された- MergedContextConfigurationに基づいて AOT ビルド時の処理用に新しい- ApplicationContextをロードし、コンテキストを構成して、コンテキストを返します。AotContextLoader.- loadContextForAotRuntime- (MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) 提供された- MergedContextConfigurationおよび- ApplicationContextInitializerに基づいて、AOT ランタイム実行用に新しい- ApplicationContextをロードします。
- org.springframework.test.context.cache 内の MergedContextConfiguration 使用型 MergedContextConfiguration のパラメーターを持つ org.springframework.test.context.cache のメソッド修飾子と型メソッド説明- voidDefaultCacheAwareContextLoaderDelegate.- closeContext- (MergedContextConfiguration mergedConfig, DirtiesContext.HierarchyMode hierarchyMode) - booleanContextCache.- contains- (MergedContextConfiguration key) 指定されたキーのキャッシュされたコンテキストがあるかどうかを確認します。- booleanDefaultContextCache.- contains- (MergedContextConfiguration key) ContextCache.- get- (MergedContextConfiguration key) 指定されたキーのキャッシュされた- ApplicationContextを取得します。DefaultContextCache.- get- (MergedContextConfiguration key) - default intContextCache.- getFailureCount- (MergedContextConfiguration key) 指定されたキーの失敗回数を取得します。- intDefaultContextCache.- getFailureCount- (MergedContextConfiguration key) - default voidContextCache.- incrementFailureCount- (MergedContextConfiguration key) 指定されたキーの失敗回数を増やします。- voidDefaultContextCache.- incrementFailureCount- (MergedContextConfiguration key) - booleanDefaultCacheAwareContextLoaderDelegate.- isContextLoaded- (MergedContextConfiguration mergedConfig) DefaultCacheAwareContextLoaderDelegate.- loadContext- (MergedContextConfiguration mergedConfig) - protected ApplicationContextDefaultCacheAwareContextLoaderDelegate.- loadContextInternal- (MergedContextConfiguration mergedConfig) 提供されたマージされたコンテキスト構成の- ApplicationContextをロードします。- voidContextCache.- put- (MergedContextConfiguration key, ApplicationContext context) 特定のキーにある- ApplicationContextインスタンスをキャッシュに明示的に追加します。これにより、カスタムの排除ポリシーが適用される可能性があります。- voidDefaultContextCache.- put- (MergedContextConfiguration key, ApplicationContext context) - voidContextCache.- remove- (MergedContextConfiguration key, DirtiesContext.HierarchyMode hierarchyMode) 指定されたキーを持つコンテキストをキャッシュから削除し、- ConfigurableApplicationContextのインスタンスである場合は明示的に閉じます。- voidDefaultContextCache.- remove- (MergedContextConfiguration key, DirtiesContext.HierarchyMode hierarchyMode) 
- org.springframework.test.context.support 内の MergedContextConfiguration 使用修飾子と型メソッド説明AbstractTestContextBootstrapper.- buildMergedContextConfiguration()- protected MergedContextConfigurationAbstractTestContextBootstrapper.- processMergedContextConfiguration- (MergedContextConfiguration mergedConfig) 提供され、新しくインスタンス化された- MergedContextConfigurationインスタンスを処理します。型 MergedContextConfiguration のパラメーターを持つ org.springframework.test.context.support のメソッド修飾子と型メソッド説明- protected voidAbstractContextLoader.- customizeContext- (ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Bean 定義がコンテキストになく、文脈をリフレッシュされる前にロードされた後、この- ContextLoaderによって作成された- ConfigurableApplicationContextをカスタマイズします。- protected voidAbstractGenericContextLoader.- loadBeanDefinitions- (GenericApplicationContext context, MergedContextConfiguration mergedConfig) 提供された- MergedContextConfigurationの場所またはクラスから、提供された- contextに Bean 定義をロードします。- protected voidAnnotationConfigContextLoader.- loadBeanDefinitions- (GenericApplicationContext context, MergedContextConfiguration mergedConfig) 提供された- MergedContextConfigurationのクラスから、提供された- contextのクラスを登録します。- protected voidGenericGroovyXmlContextLoader.- loadBeanDefinitions- (GenericApplicationContext context, MergedContextConfiguration mergedConfig) - GroovyBeanDefinitionReaderを使用して、提供された- MergedContextConfigurationの場所から提供された- contextに Bean 定義をロードします。- final ApplicationContextAbstractDelegatingSmartContextLoader.- loadContext- (MergedContextConfiguration mergedConfig) - ApplicationContextをロードする適切な候補- SmartContextLoaderにデリゲートします。- final ApplicationContextAbstractGenericContextLoader.- loadContext- (MergedContextConfiguration mergedConfig) 提供された- MergedContextConfigurationの- GenericApplicationContextをロードします。- final ApplicationContextAbstractDelegatingSmartContextLoader.- loadContextForAotProcessing- (MergedContextConfiguration mergedConfig) AOT 処理のために- ApplicationContextをロードするために、適切な候補- SmartContextLoaderに委譲します。AbstractGenericContextLoader.- loadContextForAotProcessing- (MergedContextConfiguration mergedConfig) 提供された- MergedContextConfigurationに基づいて、AOT ビルド時の処理のために- GenericApplicationContextをロードします。- final ApplicationContextAbstractDelegatingSmartContextLoader.- loadContextForAotRuntime- (MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) AOT ランタイム実行のために- ApplicationContextをロードするために、適切な候補- SmartContextLoaderに委譲します。AbstractGenericContextLoader.- loadContextForAotRuntime- (MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) 提供された- MergedContextConfigurationおよび- ApplicationContextInitializerに基づいて、AOT ランタイム実行用に- GenericApplicationContextをロードします。- protected voidAbstractContextLoader.- prepareContext- (ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Bean 定義が読み取られる前に、この- SmartContextLoaderによって作成された- ConfigurableApplicationContextを準備します。- protected MergedContextConfigurationAbstractTestContextBootstrapper.- processMergedContextConfiguration- (MergedContextConfiguration mergedConfig) 提供され、新しくインスタンス化された- MergedContextConfigurationインスタンスを処理します。- protected voidAbstractGenericContextLoader.- validateMergedContextConfiguration- (MergedContextConfiguration mergedConfig) このコンテキストローダーがサポートするものに関して、提供された- MergedContextConfigurationを検証します。- protected voidAnnotationConfigContextLoader.- validateMergedContextConfiguration- (MergedContextConfiguration mergedConfig) 提供された- MergedContextConfigurationに- locationsが含まれていないことを確認してください。- protected voidGenericXmlContextLoader.- validateMergedContextConfiguration- (MergedContextConfiguration mergedConfig) 提供された- MergedContextConfigurationに- classesが含まれていないことを確認してください。型 MergedContextConfiguration のパラメーターを持つ org.springframework.test.context.support のコンストラクター修飾子コンストラクター説明- DefaultTestContext- (ClassSE<?> testClass, MergedContextConfiguration mergedConfig, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate) 指定された引数から新しい- DefaultTestContextを構築します。
- org.springframework.test.context.web 内の MergedContextConfiguration 使用修飾子と型クラス説明- class- WebMergedContextConfigurationは、テストクラスとそのすべてのスーパークラス、および- @ContextConfiguration、- @WebAppConfiguration、- @ActiveProfiles、- @TestPropertySourceを含むクラスで宣言されたマージされたコンテキスト構成をカプセル化します。修飾子と型メソッド説明- protected MergedContextConfigurationWebTestContextBootstrapper.- processMergedContextConfiguration- (MergedContextConfiguration mergedConfig) 指定された- MergedContextConfigurationのテストクラスに- @WebAppConfigurationのアノテーションが付けられている場合は- WebMergedContextConfigurationを返し、それ以外の場合は指定されたインスタンスを変更せずに返します。型 MergedContextConfiguration のパラメーターを持つ org.springframework.test.context.web のメソッド修飾子と型メソッド説明- final ApplicationContextAbstractGenericWebContextLoader.- loadContext- (MergedContextConfiguration mergedConfig) 提供された- MergedContextConfigurationの- GenericWebApplicationContextをロードします。AbstractGenericWebContextLoader.- loadContextForAotProcessing- (MergedContextConfiguration mergedConfig) 提供された- MergedContextConfigurationに基づいて、AOT ビルド時の処理のために- GenericWebApplicationContextをロードします。AbstractGenericWebContextLoader.- loadContextForAotRuntime- (MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) 提供された- MergedContextConfigurationおよび- ApplicationContextInitializerに基づいて、AOT ランタイム実行用に- GenericWebApplicationContextをロードします。- protected MergedContextConfigurationWebTestContextBootstrapper.- processMergedContextConfiguration- (MergedContextConfiguration mergedConfig) 指定された- MergedContextConfigurationのテストクラスに- @WebAppConfigurationのアノテーションが付けられている場合は- WebMergedContextConfigurationを返し、それ以外の場合は指定されたインスタンスを変更せずに返します。型 MergedContextConfiguration のパラメーターを持つ org.springframework.test.context.web のコンストラクター修飾子コンストラクター説明- WebMergedContextConfiguration- (ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, StringSE[] propertySourceLocations, StringSE[] propertySourceProperties, StringSE resourceBasePath, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) - WebMergedContextConfiguration- (ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, StringSE[] propertySourceLocations, StringSE[] propertySourceProperties, SetSE<ContextCustomizer> contextCustomizers, StringSE resourceBasePath, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) - WebMergedContextConfiguration- (ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, ListSE<PropertySourceDescriptor> propertySourceDescriptors, StringSE[] propertySourceProperties, SetSE<ContextCustomizer> contextCustomizers, StringSE resourceBasePath, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) 指定されたパラメーターの新しい- WebMergedContextConfigurationインスタンスを作成します。- WebMergedContextConfiguration- (MergedContextConfiguration mergedConfig, StringSE resourceBasePath) 提供された- MergedContextConfigurationからすべてのプロパティをコピーして、新しい- WebMergedContextConfigurationインスタンスを作成します。
MergedContextConfiguration(Class, String[], Class[], Set, String[], List, String[], Set, ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration)を推奨