Class RunBeforeTestClassCallbacks
- java.lang.Object
- org.junit.runners.model.Statement
- org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks
public class RunBeforeTestClassCallbacks extends Statement
RunBeforeTestClassCallbacks
is a custom JUnitStatement
which allows the Spring TestContext Framework to be plugged into the JUnit execution chain by callingbeforeTestClass()
on the suppliedTestContextManager
.- Since:
- 3.0
- Author:
- Sam Brannen
- See Also:
evaluate()
,RunAfterTestMethodCallbacks
Constructor Summary
Constructors Constructor Description RunBeforeTestClassCallbacks(Statement next, TestContextManager testContextManager)
Construct a newRunBeforeTestClassCallbacks
statement.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evaluate()
InvokeTestContextManager.beforeTestClass()
and then evaluate the nextStatement
in the execution chain (typically an instance ofRunBefores
).
Constructor Detail
RunBeforeTestClassCallbacks
public RunBeforeTestClassCallbacks(Statement next, TestContextManager testContextManager)
Construct a newRunBeforeTestClassCallbacks
statement.- Parameters:
next
- the nextStatement
in the execution chaintestContextManager
- the TestContextManager upon which to callbeforeTestClass()