Class RunPreparetestInstanceCallbacks
java.lang.Object
org.junit.runners.model.Statement
org.springframework.test.context.junit4.statements.RunPreparetestInstanceCallbacks
Deprecated.
RunPreparetestInstanceCallbacks is a custom JUnit Statement which
allows the Spring testContext Framework to be plugged into the JUnit
execution chain by calling preparetestInstance() on the supplied testContextManager.- Since:
- 4.2
- Author:
- Sam Brannen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRunPreparetestInstanceCallbacks(Statement next, Object testInstance, testContextManager testContextManager) Deprecated.Construct a newRunPreparetestInstanceCallbacksstatement. -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluate()Deprecated.InvoketestContextManager.preparetestInstance(Object)and then evaluate the nextStatementin the execution chain (typically an instance ofRunAftertestMethodCallbacks).
-
Constructor Details
-
RunPreparetestInstanceCallbacks
public RunPreparetestInstanceCallbacks(Statement next, Object testInstance, testContextManager testContextManager) Deprecated.Construct a newRunPreparetestInstanceCallbacksstatement.- Parameters:
next- the nextStatementin the execution chain; nevernulltestInstance- the current test instance; nevernulltestContextManager- thetestContextManagerupon which to callpreparetestInstance(); nevernull
-
-
Method Details
-
evaluate
Deprecated.InvoketestContextManager.preparetestInstance(Object)and then evaluate the nextStatementin the execution chain (typically an instance ofRunAftertestMethodCallbacks).
-
SpringExtensionand JUnit Jupiter