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 newRunPrepareTestInstanceCallbacks
statement. -
Method Summary
Modifier and TypeMethodDescriptionvoid
evaluate()
Deprecated.InvokeTestContextManager.prepareTestInstance(Object)
and then evaluate the nextStatement
in the execution chain (typically an instance ofRunAfterTestMethodCallbacks
).
-
Constructor Details
-
RunPrepareTestInstanceCallbacks
public RunPrepareTestInstanceCallbacks(Statement next, Object testInstance, TestContextManager testContextManager) Deprecated.Construct a newRunPrepareTestInstanceCallbacks
statement.- Parameters:
next
- the nextStatement
in the execution chain; nevernull
testInstance
- the current test instance; nevernull
testContextManager
- theTestContextManager
upon which to callprepareTestInstance()
; nevernull
-
-
Method Details
-
evaluate
Deprecated.InvokeTestContextManager.prepareTestInstance(Object)
and then evaluate the nextStatement
in the execution chain (typically an instance ofRunAfterTestMethodCallbacks
).
-
SpringExtension
and JUnit Jupiter