パッケージ | 説明 |
---|---|
org.springframework.test.annotation | アノテーション駆動型テストのクラスをサポートします。 |
org.springframework.test.context | このパッケージには Spring TestContext フレームワークが含まれており、使用中の実際のテストフレームワークにとらわれないアノテーション駆動型ユニットおよび統合テストのサポートを提供します。 |
org.springframework.test.context.cache | Spring TestContext フレームワーク内のコンテキストキャッシングのサポート。 |
org.springframework.test.context.support | Spring TestContext フレームワークのサポートクラス。 |
修飾子と型 | メソッドと説明 |
---|---|
static DirtiesContext.HierarchyMode | DirtiesContext.HierarchyMode.valueOf(StringSE name) 指定された名前を持つこの型の列挙定数を返します。 |
static DirtiesContext.HierarchyMode[] | DirtiesContext.HierarchyMode.values() この列挙型の定数を含む配列を、宣言されている順序で返します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | CacheAwareContextLoaderDelegate.closeContext(MergedContextConfiguration mergedContextConfiguration, DirtiesContext.HierarchyMode hierarchyMode) 提供された MergedContextConfiguration のアプリケーションコンテキストを ContextCache から削除し、それが ConfigurableApplicationContext のインスタンスである場合は閉じます。 |
void | TestContext.markApplicationContextDirty(DirtiesContext.HierarchyMode hierarchyMode) このメソッドを呼び出して、このテストコンテキストに関連付けられているアプリケーションコンテキストがダーティであり、コンテキストキャッシュから削除する必要があることを通知します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | DefaultCacheAwareContextLoaderDelegate.closeContext(MergedContextConfiguration mergedContextConfiguration, DirtiesContext.HierarchyMode hierarchyMode) |
void | ContextCache.remove(MergedContextConfiguration key, DirtiesContext.HierarchyMode hierarchyMode) 指定されたキーを持つコンテキストをキャッシュから削除し、 ConfigurableApplicationContext のインスタンスである場合は明示的に閉じます。 |
void | DefaultContextCache.remove(MergedContextConfiguration key, DirtiesContext.HierarchyMode hierarchyMode) 指定されたキーを持つコンテキストをキャッシュから削除し、 ConfigurableApplicationContext のインスタンスである場合は明示的に閉じます。 |
修飾子と型 | メソッドと説明 |
---|---|
protected void | AbstractDirtiesContextTestExecutionListener.dirtyContext(TestContext testContext, DirtiesContext.HierarchyMode hierarchyMode) 指定されたテストコンテキストのアプリケーションコンテキストを ダーティとしてマークし、テストコンテキストの REINJECT_DEPENDENCIES_ATTRIBUTE を true に設定します。 |
void | DefaultTestContext.markApplicationContextDirty(DirtiesContext.HierarchyMode hierarchyMode) このテストコンテキストに関連付けられたアプリケーションコンテキストをダーティとしてマークします (つまり、コンテキストキャッシュから削除し、閉じます)。 |