クラス RunAfterTestMethodCallbacks

java.lang.ObjectSE
org.junit.runners.model.Statement
org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks

public class RunAfterTestMethodCallbacks extends Statement
RunAfterTestMethodCallbacks はカスタム JUnit Statement であり、提供されている TestContextManagerafterTestMethod() を呼び出すことにより、Spring TestContext フレームワークを JUnit 実行チェーンにプラグインできます。

注意 : このクラスには、JUnit 4.9 以上が必要です。

導入:
3.0
作成者:
Sam Brannen
関連事項:
  • コンストラクターの詳細

    • RunAfterTestMethodCallbacks

      public RunAfterTestMethodCallbacks(Statement next, ObjectSE testInstance, MethodSE testMethod, TestContextManager testContextManager)
      新しい RunAfterTestMethodCallbacks ステートメントを作成します。
      パラメーター:
      next - 実行チェーンの次の Statement 
      testInstance - 現在のテストインスタンス (非 null)
      testMethod - テストインスタンスで実行されたばかりのテストメソッド
      testContextManager - afterTestMethod() を呼び出す TestContextManager
  • メソッドの詳細