Class RunBeforeTestMethodCallbacks
java.lang.Object
org.junit.runners.model.Statement
org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks
RunBeforeTestMethodCallbacks
is a custom JUnit Statement
which allows
the Spring TestContext Framework to be plugged into the JUnit execution chain
by calling beforeTestMethod()
on the supplied TestContextManager
.- Since:
- 3.0
- Author:
- Sam Brannen
- See Also:
-
Constructor Summary
ConstructorDescriptionRunBeforeTestMethodCallbacks
(Statement next, Object testInstance, Method testMethod, TestContextManager testContextManager) Construct a newRunBeforeTestMethodCallbacks
statement. -
Method Summary
Modifier and TypeMethodDescriptionvoid
evaluate()
InvokeTestContextManager.beforeTestMethod(Object, Method)
and then evaluate the nextStatement
in the execution chain (typically an instance ofRunBefores
).
-
Constructor Details
-
RunBeforeTestMethodCallbacks
public RunBeforeTestMethodCallbacks(Statement next, Object testInstance, Method testMethod, TestContextManager testContextManager) Construct a newRunBeforeTestMethodCallbacks
statement.- Parameters:
next
- the nextStatement
in 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 callbeforeTestMethod()
-
-
Method Details
-
evaluate
InvokeTestContextManager.beforeTestMethod(Object, Method)
and then evaluate the nextStatement
in the execution chain (typically an instance ofRunBefores
).
-