クラス RunBeforeTestExecutionCallbacks

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

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

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

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

    • RunBeforeTestExecutionCallbacks

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