クラス CommonCachesTestExecutionListener
java.lang.ObjectSE
org.springframework.test.context.support.AbstractTestExecutionListener
org.springframework.test.context.support.CommonCachesTestExecutionListener
- 実装されているすべてのインターフェース:
Ordered, TestExecutionListener
TestExecutionListener は、共通キャッシュが不要になったら確実にクリアされるようにします。ApplicationContext のリソースキャッシュは Bean 初期化フェーズでのみ必要なのでクリアします。コンテキストをダーティにするとコンテキストが閉じられ、コンテキストキャッシュから削除されるため、関連するリソースキャッシュをクリアする必要がなくなるため、DirtiesContextTestExecutionListener の後に実行します。
- 導入:
- 6.2
- 作成者:
- Stephane Nicoll
フィールドのサマリー
フィールドインターフェース Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEコンストラクターの概要
コンストラクター方法の概要
修飾子と型メソッド説明voidafterTestClass(TestContext testContext) デフォルトの実装は空です。final intgetOrder()3005 を返します。これにより、CommonCachesTestExecutionListenerがDirtiesContextTestExecutionListenerの後、TransactionalTestExecutionListenerの前に配置されることが保証されます。
フィールドの詳細
ORDER
コンストラクターの詳細
CommonCachesTestExecutionListener
public CommonCachesTestExecutionListener()
メソッドの詳細
getOrder
public final int getOrder()3005 を返します。これにより、CommonCachesTestExecutionListenerがDirtiesContextTestExecutionListenerの後、TransactionalTestExecutionListenerの前に配置されることが保証されます。- 次で指定:
- インターフェース
OrderedのgetOrder - オーバーライド:
- クラス
AbstractTestExecutionListenerのgetOrder - 戻り値:
- オーダー額
- 関連事項:
afterTestClass
クラスからコピーされた説明:AbstractTestExecutionListenerデフォルトの実装は空です。必要に応じて、サブクラスでオーバーライドできます。- 次で指定:
- インターフェース
TestExecutionListenerのafterTestClass - オーバーライド:
- クラス
AbstractTestExecutionListenerのafterTestClass - パラメーター:
testContext- テストのテストコンテキスト。null- 例外:
ExceptionSE- 例外の伝播を許可します