Class RunBeforetestExecutionCallbacks
java.lang.Object
org.junit.runners.model.Statement
org.springframework.test.context.junit4.statements.RunBeforetestExecutionCallbacks
Deprecated.
RunBeforetestExecutionCallbacks is a custom JUnit Statement
which allows the Spring testContext Framework to be plugged into the
JUnit 4 execution chain by calling beforetestExecution() on the supplied testContextManager.
NOTE: This class requires JUnit 4.9 or higher.
- Since:
- 5.0
- Author:
- Sam Brannen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRunBeforetestExecutionCallbacks(Statement next, Object testInstance, Method testMethod, testContextManager testContextManager) Deprecated.Construct a newRunBeforetestExecutionCallbacksstatement. -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluate()Deprecated.InvoketestContextManager.beforetestExecution(Object, Method)and then evaluate the nextStatementin the execution chain (typically an instance ofInvokeMethod).
-
Constructor Details
-
RunBeforetestExecutionCallbacks
public RunBeforetestExecutionCallbacks(Statement next, Object testInstance, Method testMethod, testContextManager testContextManager) Deprecated.Construct a newRunBeforetestExecutionCallbacksstatement.- Parameters:
next- the nextStatementin the execution chaintestInstance- the current test instance (nevernull)testMethod- the test method which is about to be executed on the test instancetestContextManager- the testContextManager upon which to callbeforetestExecution()
-
-
Method Details
-
evaluate
-
SpringExtensionand JUnit Jupiter