Class RunBeforeTestClassCallbacks
java.lang.Object
org.junit.runners.model.Statement
org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks
RunBeforeTestClassCallbacks
is a custom JUnit Statement
which allows
the Spring TestContext Framework to be plugged into the JUnit execution chain
by calling beforeTestClass()
on the
supplied TestContextManager
.- Since:
- 3.0
- Author:
- Sam Brannen
- See Also:
-
Constructor Summary
ConstructorDescriptionRunBeforeTestClassCallbacks
(Statement next, TestContextManager testContextManager) Construct a newRunBeforeTestClassCallbacks
statement. -
Method Summary
Modifier and TypeMethodDescriptionvoid
evaluate()
InvokeTestContextManager.beforeTestClass()
and then evaluate the nextStatement
in the execution chain (typically an instance ofRunBefores
).
-
Constructor Details
-
RunBeforeTestClassCallbacks
Construct a newRunBeforeTestClassCallbacks
statement.- Parameters:
next
- the nextStatement
in the execution chaintestContextManager
- the TestContextManager upon which to callbeforeTestClass()
-
-
Method Details
-
evaluate
InvokeTestContextManager.beforeTestClass()
and then evaluate the nextStatement
in the execution chain (typically an instance ofRunBefores
).
-