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