Enum クラスの使用箇所
org.springframework.test.annotation.DirtiesContext.HierarchyMode
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 使用
型 DirtiesContext.HierarchyMode のパラメーターを持つ org.springframework.test.context のメソッド修飾子と型メソッド説明voidCacheAwareContextLoaderDelegate.closeContext(MergedContextConfiguration mergedConfig, DirtiesContext.HierarchyMode hierarchyMode) 提供されたMergedContextConfigurationのアプリケーションコンテキストをContextCacheから削除し、それがConfigurableApplicationContextのインスタンスである場合は閉じます。voidTestContext.markApplicationContextDirty(DirtiesContext.HierarchyMode hierarchyMode) このメソッドを呼び出して、このテストコンテキストに関連付けられているアプリケーションコンテキストがダーティであり、コンテキストキャッシュから削除する必要があることを通知します。org.springframework.test.context.cache 内の DirtiesContext.HierarchyMode 使用
型 DirtiesContext.HierarchyMode のパラメーターを持つ org.springframework.test.context.cache のメソッド修飾子と型メソッド説明voidDefaultCacheAwareContextLoaderDelegate.closeContext(MergedContextConfiguration mergedConfig, DirtiesContext.HierarchyMode hierarchyMode) voidContextCache.remove(MergedContextConfiguration key, DirtiesContext.HierarchyMode hierarchyMode) 指定されたキーを持つコンテキストをキャッシュから削除し、ConfigurableApplicationContextのインスタンスである場合は明示的に閉じます。voidDefaultContextCache.remove(MergedContextConfiguration key, DirtiesContext.HierarchyMode hierarchyMode) org.springframework.test.context.support 内の DirtiesContext.HierarchyMode 使用
型 DirtiesContext.HierarchyMode のパラメーターを持つ org.springframework.test.context.support のメソッド修飾子と型メソッド説明protected voidAbstractDirtiesContextTestExecutionListener.dirtyContext(TestContext testContext, DirtiesContext.HierarchyMode hierarchyMode) 指定されたテストコンテキストのアプリケーションコンテキストを ダーティとしてマークし、テストコンテキストのREINJECT_DEPENDENCIES_ATTRIBUTEをtrueに設定します。voidDefaultTestContext.markApplicationContextDirty(DirtiesContext.HierarchyMode hierarchyMode) このテストコンテキストに関連付けられたアプリケーションコンテキストをダーティとしてマークします (つまり、コンテキストキャッシュから削除し、閉じます)。