クラス RunBeforeTestExecutionCallbacks
java.lang.ObjectSE
org.junit.runners.model.Statement
org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks
RunBeforeTestExecutionCallbacks
はカスタム JUnit Statement
であり、提供されている TestContextManager
で beforeTestExecution()
を呼び出すことにより、Spring TestContext フレームワークを JUnit 4 実行チェーンにプラグインできます。注意 : このクラスには、JUnit 4.9 以上が必要です。
- 導入:
- 5.0
- 作成者:
- Sam Brannen
- 関連事項:
コンストラクターのサマリー
コンストラクター説明RunBeforeTestExecutionCallbacks
(Statement next, ObjectSE testInstance, MethodSE testMethod, TestContextManager testContextManager) 新しいRunBeforeTestExecutionCallbacks
ステートメントを作成します。メソッドのサマリー
修飾子と型メソッド説明void
evaluate()
TestContextManager.beforeTestExecution(Object, Method)
を呼び出してから、実行 チェーン (通常はInvokeMethod
のインスタンス) で次のStatement
を評価します。
コンストラクターの詳細
RunBeforeTestExecutionCallbacks
public RunBeforeTestExecutionCallbacks(Statement next, ObjectSE testInstance, MethodSE testMethod, TestContextManager testContextManager) 新しいRunBeforeTestExecutionCallbacks
ステートメントを作成します。- パラメーター:
next
- 実行チェーンの次のStatement
testInstance
- 現在のテストインスタンス (非null
)testMethod
- テストインスタンスで実行されようとしているテストメソッドtestContextManager
-beforeTestExecution()
を呼び出す TestContextManager
メソッドの詳細
evaluate
TestContextManager.beforeTestExecution(Object, Method)
を呼び出してから、実行 チェーン (通常はInvokeMethod
のインスタンス) で次のStatement
を評価します。- 次で指定:
- クラス
Statement
のevaluate
- 例外:
ThrowableSE