パッケージ | 説明 |
---|---|
org.springframework.test.context | このパッケージには Spring TestContext フレームワークが含まれており、使用中の実際のテストフレームワークにとらわれないアノテーション駆動型ユニットおよび統合テストのサポートを提供します。 |
org.springframework.test.context.support | Spring TestContext フレームワークのサポートクラス。 |
org.springframework.test.context.web | Web は、Spring TestContext フレームワークのクラスをサポートします。 |
修飾子と型 | インターフェースと説明 |
---|---|
interface | SmartContextLoader Spring TestContext フレームワークによって管理される統合テストのために application context をロードするための戦略インターフェース。 |
修飾子と型 | メソッドと説明 |
---|---|
ContextLoader | MergedContextConfiguration.getContextLoader() テストクラスの解決された ContextLoader を取得します。 |
修飾子と型 | メソッドと説明 |
---|---|
ClassSE<? extends ContextLoader> | ContextConfigurationAttributes.getContextLoaderClass() @ContextConfiguration を介して宣言された ContextLoader クラスを取得します。 |
修飾子と型 | メソッドと説明 |
---|---|
protected static StringSE | MergedContextConfiguration.nullSafeClassName(ContextLoader contextLoader) |
コンストラクターと説明 |
---|
MergedContextConfiguration(ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, ContextLoader contextLoader) 指定されたパラメーターの新しい MergedContextConfiguration インスタンスを作成します。 |
MergedContextConfiguration(ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) 指定されたパラメーターの新しい MergedContextConfiguration インスタンスを作成します。 |
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 インスタンスを作成します。 |
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 インスタンスを作成します。 |
MergedContextConfiguration(ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, StringSE[] activeProfiles, ContextLoader contextLoader) 指定されたパラメーターの新しい MergedContextConfiguration インスタンスを作成します。 |
コンストラクターと説明 |
---|
ContextConfigurationAttributes(ClassSE<?> declaringClass, StringSE[] locations, ClassSE<?>[] classes, boolean inheritLocations, ClassSE<? extends ApplicationContextInitializer<?>>[] initializers, boolean inheritInitializers, ClassSE<? extends ContextLoader> contextLoaderClass) @ContextConfiguration アノテーションとそれに対応する属性を宣言したテストクラスSEの新しい ContextConfigurationAttributes インスタンスを作成します。 |
ContextConfigurationAttributes(ClassSE<?> declaringClass, StringSE[] locations, ClassSE<?>[] classes, boolean inheritLocations, ClassSE<? extends ApplicationContextInitializer<?>>[] initializers, boolean inheritInitializers, StringSE name, ClassSE<? extends ContextLoader> contextLoaderClass) @ContextConfiguration アノテーションとそれに対応する属性を宣言したテストクラスSEの新しい ContextConfigurationAttributes インスタンスを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
protected ContextLoader | AbstractTestContextBootstrapper.resolveContextLoader(ClassSE<?> testClass, ListSE<ContextConfigurationAttributes> configAttributesList) ContextConfigurationAttributes の提供されたリストに使用する ContextLoader SE クラスを解決してから、その ContextLoader をインスタンス化して返します。 |
修飾子と型 | メソッドと説明 |
---|---|
protected ClassSE<? extends ContextLoader> | DefaultTestContextBootstrapper.getDefaultContextLoaderClass(ClassSE<?> testClass) DelegatingSmartContextLoader を返します。 |
protected abstract ClassSE<? extends ContextLoader> | AbstractTestContextBootstrapper.getDefaultContextLoaderClass(ClassSE<?> testClass) 提供されたテストクラスに使用するデフォルトの ContextLoader クラスを決定SEします。 |
protected ClassSE<? extends ContextLoader> | AbstractTestContextBootstrapper.resolveExplicitContextLoaderClass(ListSE<ContextConfigurationAttributes> configAttributesList) |
修飾子と型 | クラスと説明 |
---|---|
class | AbstractGenericWebContextLoader GenericWebApplicationContext をロードする AbstractContextLoader の抽象、汎用拡張。 |
class | AnnotationConfigWebContextLoader アノテーション付きクラスから Bean 定義をロードする AbstractGenericWebContextLoader の具体的な実装。 |
class | GenericGroovyXmlWebContextLoader Groovy スクリプトおよび XML 構成ファイルから Bean 定義をロードする AbstractGenericWebContextLoader の具体的な実装。 |
class | GenericXmlWebContextLoader XML リソースから Bean 定義をロードする AbstractGenericWebContextLoader の具体的な実装。 |
class | WebDelegatingSmartContextLoader WebDelegatingSmartContextLoader は、GenericXmlWebContextLoader (または Groovy がクラスパスに存在する場合は GenericGroovyXmlWebContextLoader )および AnnotationConfigWebContextLoader に委譲する AbstractDelegatingSmartContextLoader の具象実装です。 |
修飾子と型 | メソッドと説明 |
---|---|
protected ClassSE<? extends ContextLoader> | WebTestContextBootstrapper.getDefaultContextLoaderClass(ClassSE<?> testClass) 指定されたクラスに @WebAppConfiguration アノテーションが付けられている場合は WebDelegatingSmartContextLoader を返し、そうでない場合はスーパークラスに委譲します。 |
コンストラクターと説明 |
---|
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 インスタンスを作成します。 |