クラス WebMergedContextConfiguration

java.lang.ObjectSE
org.springframework.test.context.MergedContextConfiguration
org.springframework.test.context.web.WebMergedContextConfiguration
実装されたすべてのインターフェース:
SerializableSE

public class WebMergedContextConfiguration extends MergedContextConfiguration
WebMergedContextConfiguration は、テストクラスとそのすべてのスーパークラス、および @ContextConfiguration@WebAppConfiguration@ActiveProfiles@TestPropertySource を含むクラスで宣言されたマージされたコンテキスト構成をカプセル化します。

WebMergedContextConfiguration は、@WebAppConfiguration を介して構成されたリソースベースパスのサポートを追加することにより、MergedContextConfiguration の契約を継承します。これにより、ContextCache は、この WebMergedContextConfiguration のプロパティを使用してロードされた対応する WebApplicationContext を適切にキャッシュできます。

導入:
3.2
作成者:
Sam Brannen
関連事項:
  • コンストラクターの詳細

    • WebMergedContextConfiguration

      public WebMergedContextConfiguration(MergedContextConfiguration mergedConfig, StringSE resourceBasePath)
      提供された MergedContextConfiguration からすべてのプロパティをコピーして、新しい WebMergedContextConfiguration インスタンスを作成します。

      resourceBasePath に空の値を指定すると、空の文字列が使用されます。

      パラメーター:
      resourceBasePath - Web アプリケーションのルートディレクトリへのリソースパス
      導入:
      4.1
    • WebMergedContextConfiguration

      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 インスタンスを作成します。

      locationsclassesactiveProfilespropertySourceLocations または 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

      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 インスタンスを作成します。

      locationsclassesactiveProfilespropertySourceLocations または 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
  • メソッドの詳細