クラス WebMergedContextConfiguration
- 実装されたすべてのインターフェース:
SerializableSE
WebMergedContextConfiguration
は、テストクラスとそのすべてのスーパークラス、および @ContextConfiguration
、@WebAppConfiguration
、@ActiveProfiles
、@TestPropertySource
を含むクラスで宣言されたマージされたコンテキスト構成をカプセル化します。WebMergedContextConfiguration
は、@WebAppConfiguration
を介して構成されたリソースベースパスのサポートを追加することにより、MergedContextConfiguration
の契約を継承します。これにより、ContextCache
は、この WebMergedContextConfiguration
のプロパティを使用してロードされた対応する WebApplicationContext
を適切にキャッシュできます。
コンストラクターの概要
コンストラクターコンストラクター説明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
インスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明boolean
提供されたオブジェクトがこのWebMergedContextConfiguration
インスタンスと等しいかどうかを判定するには、両オブジェクトのロケーション、アノテーションクラス、コンテキストイニシャライザークラス、アクティブプロファイル、リソースベースパス、プロパティソースディスクリプタ、プロパティソースプロパティ、コンテキストカスタマイザ、親、およびContextLoaders
の完全修飾名を比較します。@WebAppConfiguration
を介して構成された、テストクラスの Web アプリケーションのルートディレクトリへのリソースパスを取得します。int
hashCode()
テストクラスを除く、このWebMergedContextConfiguration
のすべてのプロパティに対して一意のハッシュコードを生成します。toString()
テストクラス、場所、アノテーション付きクラス、コンテキスト初期化クラス、アクティブプロファイル、プロパティソース記述子、プロパティソースプロパティ、コンテキストカスタマイザー、リソースのベースパス、ContextLoader
の名前、親構成の文字列表現を提供します。クラス org.springframework.test.context.MergedContextConfiguration から継承されたメソッド
getActiveProfiles, getClasses, getContextCustomizers, getContextInitializerClasses, getContextLoader, getLocations, getParent, getParentApplicationContext, getPropertySourceDescriptors, getPropertySourceLocations, getPropertySourceProperties, getTestClass, hasClasses, hasLocations, hasResources, nullSafeClassName, processStrings
コンストラクターの詳細
WebMergedContextConfiguration
public WebMergedContextConfiguration(MergedContextConfiguration mergedConfig, StringSE resourceBasePath) 提供されたMergedContextConfiguration
からすべてのプロパティをコピーして、新しいWebMergedContextConfiguration
インスタンスを作成します。resourceBasePath
に空の値を指定すると、空の文字列が使用されます。- パラメーター:
resourceBasePath
- Web アプリケーションのルートディレクトリへのリソースパス- 導入:
- 4.1
WebMergedContextConfiguration
@DeprecatedSE(since="6.1") public WebMergedContextConfiguration(ClassSE<?> testClass, @Nullable StringSE[] locations, @Nullable ClassSE<?>[] classes, @Nullable SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, @Nullable StringSE[] activeProfiles, @Nullable StringSE[] propertySourceLocations, @Nullable StringSE[] propertySourceProperties, StringSE resourceBasePath, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, @Nullable MergedContextConfiguration parent) 使用すべきではありません。指定されたパラメーターの新しいWebMergedContextConfiguration
インスタンスを作成します。locations
、classes
、activeProfiles
、propertySourceLocations
またはpropertySourceProperties
にnull
値が指定されている場合は、代わりに空の配列が格納されます。contextInitializerClasses
にnull
値が指定されている場合は、代わりに空のセットが保存されます。resourceBasePath
に空の値を指定すると、空の文字列が使用されます。さらに、アクティブなプロファイルがソートされ、重複するプロファイルが削除されます。- パラメーター:
testClass
- 構成がマージされたテストクラスlocations
- マージされたリソースの場所classes
- マージされたアノテーション付きクラスcontextInitializerClasses
- マージされたコンテキスト初期化子クラスactiveProfiles
- マージされたアクティブな Bean 定義プロファイルpropertySourceLocations
- マージされたPropertySource
ロケーションpropertySourceProperties
- マージされたPropertySource
プロパティresourceBasePath
- Web アプリケーションのルートディレクトリへのリソースパスcontextLoader
- 解決されたContextLoader
cacheAwareContextLoaderDelegate
- 親コンテキストを取得するためのキャッシュ対応コンテキストローダーデリゲートparent
- 親構成、または親がない場合はnull
- 導入:
- 4.1
WebMergedContextConfiguration
@DeprecatedSE(since="6.1") public WebMergedContextConfiguration(ClassSE<?> testClass, @Nullable StringSE[] locations, @Nullable ClassSE<?>[] classes, @Nullable SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, @Nullable StringSE[] activeProfiles, @Nullable StringSE[] propertySourceLocations, @Nullable StringSE[] propertySourceProperties, @Nullable SetSE<ContextCustomizer> contextCustomizers, StringSE resourceBasePath, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, @Nullable MergedContextConfiguration parent) 使用すべきではありません。指定されたパラメーターの新しいWebMergedContextConfiguration
インスタンスを作成します。locations
、classes
、activeProfiles
、propertySourceLocations
またはpropertySourceProperties
にnull
値が指定されている場合は、代わりに空の配列が格納されます。contextInitializerClasses
またはcontextCustomizers
にnull
値が指定されている場合は、代わりに空のセットが格納されます。resourceBasePath
に空の値を指定すると、空の文字列が使用されます。さらに、アクティブなプロファイルがソートされ、重複するプロファイルが削除されます。- パラメーター:
testClass
- 構成がマージされたテストクラスlocations
- マージされたコンテキストリソースの場所classes
- マージされたアノテーション付きクラスcontextInitializerClasses
- マージされたコンテキスト初期化子クラスactiveProfiles
- マージされたアクティブな Bean 定義プロファイルpropertySourceLocations
- マージされたPropertySource
ロケーションpropertySourceProperties
- マージされたPropertySource
プロパティcontextCustomizers
- コンテキストカスタマイザresourceBasePath
- Web アプリケーションのルートディレクトリへのリソースパスcontextLoader
- 解決されたContextLoader
cacheAwareContextLoaderDelegate
- 親コンテキストを取得するためのキャッシュ対応コンテキストローダーデリゲートparent
- 親構成、または親がない場合はnull
- 導入:
- 4.3
WebMergedContextConfiguration
public WebMergedContextConfiguration(ClassSE<?> testClass, @Nullable StringSE[] locations, @Nullable ClassSE<?>[] classes, @Nullable SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, @Nullable StringSE[] activeProfiles, ListSE<PropertySourceDescriptor> propertySourceDescriptors, @Nullable StringSE[] propertySourceProperties, @Nullable SetSE<ContextCustomizer> contextCustomizers, StringSE resourceBasePath, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, @Nullable MergedContextConfiguration parent) 指定されたパラメーターの新しいWebMergedContextConfiguration
インスタンスを作成します。locations
、classes
、activeProfiles
またはpropertySourceProperties
にnull
値が指定された場合は、代わりに空の配列が格納されます。contextInitializerClasses
またはcontextCustomizers
にnull
値が指定された場合、代わりに空のセットが格納されます。さらに、アクティブなプロファイルが並べ替えられ、重複したプロファイルが削除されます。- パラメーター:
testClass
- 構成がマージされたテストクラスlocations
- マージされたコンテキストリソースの場所classes
- マージされたアノテーション付きクラスcontextInitializerClasses
- マージされたコンテキスト初期化子クラスactiveProfiles
- マージされたアクティブな Bean 定義プロファイルpropertySourceDescriptors
- マージされたプロパティのソース記述子propertySourceProperties
- マージされたインライン化プロパティcontextCustomizers
- コンテキストカスタマイザresourceBasePath
- Web アプリケーションのルートディレクトリへのリソースパスcontextLoader
- 解決されたContextLoader
cacheAwareContextLoaderDelegate
- 親ApplicationContext
を取得するためのキャッシュ対応コンテキストローダーデリゲートparent
- 親構成、または親がない場合はnull
- 導入:
- 6.1
メソッドの詳細
getResourceBasePath
@WebAppConfiguration
を介して構成された、テストクラスの Web アプリケーションのルートディレクトリへのリソースパスを取得します。- 関連事項:
equals
提供されたオブジェクトがこのWebMergedContextConfiguration
インスタンスと等しいかどうかを判定するには、両オブジェクトのロケーション、アノテーションクラス、コンテキストイニシャライザークラス、アクティブプロファイル、リソースベースパス、プロパティソースディスクリプタ、プロパティソースプロパティ、コンテキストカスタマイザ、親、およびContextLoaders
の完全修飾名を比較します。- オーバーライド:
- クラス
MergedContextConfiguration
のequals
hashCode
public int hashCode()テストクラスを除く、このWebMergedContextConfiguration
のすべてのプロパティに対して一意のハッシュコードを生成します。- オーバーライド:
- クラス
MergedContextConfiguration
のhashCode
toString
テストクラス、場所、アノテーション付きクラス、コンテキスト初期化クラス、アクティブプロファイル、プロパティソース記述子、プロパティソースプロパティ、コンテキストカスタマイザー、リソースのベースパス、ContextLoader
の名前、親構成の文字列表現を提供します。- オーバーライド:
- クラス
MergedContextConfiguration
のtoString
WebMergedContextConfiguration(Class, String[], Class[], Set, String[], List, String[], Set, String, ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration)
を推奨