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