クラス TestContextManager

java.lang.ObjectSE
org.springframework.test.context.TestContextManager

public class TestContextManager extends ObjectSE
TestContextManager は、Spring TestContext フレームワークへのメインエントリポイントです

具体的には、TestContextManager は、単一の TestContext を管理し、次のテスト実行ポイントで登録済みの各 TestExecutionListener にイベントを通知します。

アプリケーションコンテキストの読み込みとアクセス、テストインスタンスの依存性注入、テストメソッドのトランザクション実行などのサポートは、それぞれ @ContextConfiguration@TestExecutionListeners を介して構成された ContextLoaders と TestExecutionListeners によって提供されます。

TestContext、デフォルトの ContextLoader、デフォルトの TestExecutionListeners、それらのコラボレーターのブートストラップは、@BootstrapWith を介して構成された TestContextBootstrapper によって実行されます。

導入:
2.5
作成者:
Sam Brannen, Juergen Hoeller
関連事項: