public class WebMergedContextConfiguration extends MergedContextConfiguration
WebMergedContextConfiguration は、@ContextConfiguration、@WebAppConfiguration、@ActiveProfiles を介して、テストクラスおよびそのすべてのスーパークラスで宣言されたマージされたコンテキスト構成をカプセル化します。WebMergedContextConfiguration は、@WebAppConfiguration を介して構成された resource base path のサポートを追加することにより、MergedContextConfiguration の契約を継承します。これにより、TestContext は、この WebMergedContextConfiguration のプロパティを使用してロードされた対応する WebApplicationContext を適切にキャッシュできます。
| コンストラクターと説明 |
|---|
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 インスタンスを作成します。 |
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 インスタンスを作成します。 |
WebMergedContextConfiguration(MergedContextConfiguration mergedConfig, StringSE resourceBasePath) 提供された MergedContextConfiguration からすべてのプロパティをコピーして、新しい WebMergedContextConfiguration インスタンスを作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
boolean | equals(ObjectSE other) 指定されたオブジェクトがこの WebMergedContextConfiguration インスタンスと等しいかどうかを確認するには、両方のオブジェクトの場所、アノテーション付きクラス、コンテキスト初期化クラス、アクティブプロファイル、リソースベースパス、親、および ContextLoaders の完全修飾名を比較します。 |
StringSE | getResourceBasePath()@WebAppConfiguration を介して構成された、テストクラスの Web アプリケーションのルートディレクトリへのリソースパスを取得します。 |
int | hashCode() テストクラスを除く、この WebMergedContextConfiguration のすべてのプロパティに対して一意のハッシュコードを生成します。 |
StringSE | toString() テストクラス、場所、アノテーション付きクラス、コンテキスト初期化子クラス、アクティブプロファイル、プロパティソースの場所、プロパティソースプロパティ、コンテキストカスタマイザ、リソースベースパス、 ContextLoader の名前、親構成の String 表現を提供します。 |
getActiveProfiles, getClasses, getContextCustomizers, getContextInitializerClasses, getContextLoader, getLocations, getParent, getParentApplicationContext, getPropertySourceLocations, getPropertySourceProperties, getTestClass, hasClasses, hasLocations, hasResources, nullSafeClassNamecloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic WebMergedContextConfiguration(MergedContextConfiguration mergedConfig, StringSE resourceBasePath)
MergedContextConfiguration からすべてのプロパティをコピーして、新しい WebMergedContextConfiguration インスタンスを作成します。resourceBasePath に空の値を指定すると、空の文字列が使用されます。
resourceBasePath - Web アプリケーションのルートディレクトリへのリソースパス 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 - 解決された ContextLoadercacheAwareContextLoaderDelegate - 親コンテキストを取得するためのキャッシュ対応コンテキストローダーデリゲート parent - 親構成、または親がない場合は null 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 - 解決された ContextLoadercacheAwareContextLoaderDelegate - 親コンテキストを取得するためのキャッシュ対応コンテキストローダーデリゲート parent - 親構成、または親がない場合は null public StringSE getResourceBasePath()
@WebAppConfiguration を介して構成された、テストクラスの Web アプリケーションのルートディレクトリへのリソースパスを取得します。WebAppConfigurationpublic boolean equals(@Nullable ObjectSE other)
WebMergedContextConfiguration インスタンスと等しいかどうかを確認するには、両方のオブジェクトの場所、アノテーション付きクラス、コンテキスト初期化クラス、アクティブプロファイル、リソースベースパス、親、および ContextLoaders の完全修飾名を比較します。MergedContextConfiguration の equals public int hashCode()
WebMergedContextConfiguration のすべてのプロパティに対して一意のハッシュコードを生成します。MergedContextConfiguration の hashCode public StringSE toString()
ContextLoader の名前、親構成の String 表現を提供します。MergedContextConfiguration の toString