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