public class RunBeforeTestExecutionCallbacks extends Statement
RunBeforeTestExecutionCallbacks
はカスタム JUnit Statement
であり、提供されている TestContextManager
で beforeTestExecution()
を呼び出すことにより、Spring TestContext フレームワークを JUnit 4 実行チェーンにプラグインできます。evaluate()
, RunAfterTestExecutionCallbacks
コンストラクターと説明 |
---|
RunBeforeTestExecutionCallbacks(Statement next, ObjectSE testInstance, MethodSE testMethod, TestContextManager testContextManager) 新しい RunBeforeTestExecutionCallbacks ステートメントを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | evaluate() TestContextManager.beforeTestExecution(Object, Method) を呼び出し、実行チェーンの次の Statement (通常は InvokeMethod のインスタンス)を評価します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public RunBeforeTestExecutionCallbacks(Statement next, ObjectSE testInstance, MethodSE testMethod, TestContextManager testContextManager)
RunBeforeTestExecutionCallbacks
ステートメントを作成します。next
- 実行チェーンの次の Statement
testInstance
- 現在のテストインスタンス (非 null
)testMethod
- テストインスタンスで実行されようとしているテストメソッド testContextManager
- beforeTestExecution()
を呼び出す TestContextManager public void evaluate() throws ThrowableSE
TestContextManager.beforeTestExecution(Object, Method)
を呼び出し、実行チェーンの次の Statement
(通常は InvokeMethod
のインスタンス)を評価します。Statement
の evaluate
ThrowableSE