パッケージ | 説明 |
---|---|
org.springframework.test.context | このパッケージには Spring TestContext フレームワークが含まれており、使用中の実際のテストフレームワークにとらわれないアノテーション駆動型ユニットおよび統合テストのサポートを提供します。 |
org.springframework.test.context.cache | Spring TestContext フレームワーク内のコンテキストキャッシングのサポート。 |
org.springframework.test.context.support | Spring TestContext フレームワークのサポートクラス。 |
org.springframework.test.context.web | Web は、Spring TestContext フレームワークのクラスをサポートします。 |
修飾子と型 | メソッドと説明 |
---|---|
MergedContextConfiguration | TestContextBootstrapper.buildMergedContextConfiguration() このブートストラップに関連付けられた BootstrapContext 内のテストクラスのマージされたコンテキスト構成を構築します。 |
MergedContextConfiguration | MergedContextConfiguration.getParent() コンテキスト階層内の親アプリケーションコンテキストの MergedContextConfiguration を取得します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | CacheAwareContextLoaderDelegate.closeContext(MergedContextConfiguration mergedContextConfiguration, DirtiesContext.HierarchyMode hierarchyMode) 提供された MergedContextConfiguration のアプリケーションコンテキストを ContextCache から削除し、それが ConfigurableApplicationContext のインスタンスである場合は閉じます。 |
void | ContextCustomizer.customizeContext(ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Bean 定義がコンテキストになく、コンテキストがリフレッシュされた前にロードされた後に供給 ConfigurableApplicationContext をカスタマイズします。 |
default boolean | CacheAwareContextLoaderDelegate.isContextLoaded(MergedContextConfiguration mergedContextConfiguration) |
ApplicationContext | SmartContextLoader.loadContext(MergedContextConfiguration mergedConfig) 指定された merged context configuration に基づいて新しい context をロードし、コンテキストを構成して、最後に完全にリフレッシュされた状態でコンテキストを返します。 |
ApplicationContext | CacheAwareContextLoaderDelegate.loadContext(MergedContextConfiguration mergedContextConfiguration) 指定された MergedContextConfiguration で構成された 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(MergedContextConfiguration mergedConfig) 提供された MergedContextConfiguration からすべてのフィールドをコピーして、新しい MergedContextConfiguration インスタンスを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | DefaultCacheAwareContextLoaderDelegate.closeContext(MergedContextConfiguration mergedContextConfiguration, DirtiesContext.HierarchyMode hierarchyMode) |
boolean | DefaultContextCache.contains(MergedContextConfiguration key) 指定されたキーのキャッシュされたコンテキストがあるかどうかを確認します。 |
boolean | ContextCache.contains(MergedContextConfiguration key) 指定されたキーのキャッシュされたコンテキストがあるかどうかを確認します。 |
ApplicationContext | DefaultContextCache.get(MergedContextConfiguration key) 指定されたキーのキャッシュされた ApplicationContext を取得します。 |
ApplicationContext | ContextCache.get(MergedContextConfiguration key) 指定されたキーのキャッシュされた ApplicationContext を取得します。 |
boolean | DefaultCacheAwareContextLoaderDelegate.isContextLoaded(MergedContextConfiguration mergedContextConfiguration) |
ApplicationContext | DefaultCacheAwareContextLoaderDelegate.loadContext(MergedContextConfiguration mergedContextConfiguration) |
protected ApplicationContext | DefaultCacheAwareContextLoaderDelegate.loadContextInternal(MergedContextConfiguration mergedContextConfiguration) 提供されたマージされたコンテキスト構成の ApplicationContext をロードします。 |
void | DefaultContextCache.put(MergedContextConfiguration key, ApplicationContext context) 特定のキーにある ApplicationContext インスタンスをキャッシュに明示的に追加します。これにより、カスタムの排除ポリシーが適用される可能性があります。 |
void | ContextCache.put(MergedContextConfiguration key, ApplicationContext context) 特定のキーにある ApplicationContext インスタンスをキャッシュに明示的に追加します。これにより、カスタムの排除ポリシーが適用される可能性があります。 |
void | DefaultContextCache.remove(MergedContextConfiguration key, DirtiesContext.HierarchyMode hierarchyMode) 指定されたキーを持つコンテキストをキャッシュから削除し、 ConfigurableApplicationContext のインスタンスである場合は明示的に閉じます。 |
void | ContextCache.remove(MergedContextConfiguration key, DirtiesContext.HierarchyMode hierarchyMode) 指定されたキーを持つコンテキストをキャッシュから削除し、 ConfigurableApplicationContext のインスタンスである場合は明示的に閉じます。 |
修飾子と型 | メソッドと説明 |
---|---|
MergedContextConfiguration | AbstractTestContextBootstrapper.buildMergedContextConfiguration() このブートストラップに関連付けられた BootstrapContext 内のテストクラスのマージされたコンテキスト構成を構築します。 |
protected MergedContextConfiguration | AbstractTestContextBootstrapper.processMergedContextConfiguration(MergedContextConfiguration mergedConfig) 提供され、新しくインスタンス化された MergedContextConfiguration インスタンスを処理します。 |
修飾子と型 | メソッドと説明 |
---|---|
protected void | AbstractContextLoader.customizeContext(ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Bean 定義がコンテキストになく、文脈をリフレッシュされる前にロードされた後、この ContextLoader によって作成された ConfigurableApplicationContext をカスタマイズします。 |
protected void | AbstractGenericContextLoader.loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig) 提供された MergedContextConfiguration の場所またはクラスから、提供された context に Bean 定義をロードします。 |
protected void | AnnotationConfigContextLoader.loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig) 提供された MergedContextConfiguration のクラスから、提供された context のクラスを登録します。 |
protected void | GenericGroovyXmlContextLoader.loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig) GroovyBeanDefinitionReader を使用して、提供された MergedContextConfiguration の場所から提供された context に Bean 定義をロードします。 |
ConfigurableApplicationContext | AbstractGenericContextLoader.loadContext(MergedContextConfiguration mergedConfig) 提供されている MergedContextConfiguration から Spring ApplicationContext をロードします。 |
ApplicationContext | AbstractDelegatingSmartContextLoader.loadContext(MergedContextConfiguration mergedConfig) ApplicationContext をロードする適切な候補 SmartContextLoader にデリゲートします。 |
protected void | AbstractContextLoader.prepareContext(ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Bean 定義が読み取られる前に、この SmartContextLoader によって作成された ConfigurableApplicationContext を準備します。 |
protected MergedContextConfiguration | AbstractTestContextBootstrapper.processMergedContextConfiguration(MergedContextConfiguration mergedConfig) 提供され、新しくインスタンス化された MergedContextConfiguration インスタンスを処理します。 |
protected void | AbstractGenericContextLoader.validateMergedContextConfiguration(MergedContextConfiguration mergedConfig) このコンテキストローダーがサポートするものに関して、提供された MergedContextConfiguration を検証します。 |
protected void | GenericPropertiesContextLoader.validateMergedContextConfiguration(MergedContextConfiguration mergedConfig) 使用すべきではありません。 提供された MergedContextConfiguration に classes が含まれていないことを確認してください。 |
protected void | GenericXmlContextLoader.validateMergedContextConfiguration(MergedContextConfiguration mergedConfig) 提供された MergedContextConfiguration に classes が含まれていないことを確認してください。 |
protected void | AnnotationConfigContextLoader.validateMergedContextConfiguration(MergedContextConfiguration mergedConfig) 提供された MergedContextConfiguration に locations が含まれていないことを確認してください。 |
コンストラクターと説明 |
---|
DefaultTestContext(ClassSE<?> testClass, MergedContextConfiguration mergedContextConfiguration, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate) 指定された引数から新しい DefaultTestContext を構築します。 |
修飾子と型 | クラスと説明 |
---|---|
class | WebMergedContextConfiguration WebMergedContextConfiguration は、@ContextConfiguration 、@WebAppConfiguration 、@ActiveProfiles を介して、テストクラスおよびそのすべてのスーパークラスで宣言されたマージされたコンテキスト構成をカプセル化します。 |
修飾子と型 | メソッドと説明 |
---|---|
protected MergedContextConfiguration | WebTestContextBootstrapper.processMergedContextConfiguration(MergedContextConfiguration mergedConfig) 指定された MergedContextConfiguration のテストクラスに @WebAppConfiguration のアノテーションが付けられている場合は WebMergedContextConfiguration を返し、それ以外の場合は指定されたインスタンスを変更せずに返します。 |
修飾子と型 | メソッドと説明 |
---|---|
ConfigurableApplicationContext | AbstractGenericWebContextLoader.loadContext(MergedContextConfiguration mergedConfig) 提供されている MergedContextConfiguration から Spring WebApplicationContext をロードします。 |
protected MergedContextConfiguration | WebTestContextBootstrapper.processMergedContextConfiguration(MergedContextConfiguration mergedConfig) 指定された MergedContextConfiguration のテストクラスに @WebAppConfiguration のアノテーションが付けられている場合は WebMergedContextConfiguration を返し、それ以外の場合は指定されたインスタンスを変更せずに返します。 |
コンストラクターと説明 |
---|
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 インスタンスを作成します。 |