Class RunBeforeTestClassCallbacks
- java.lang.Object
- org.junit.runners.model.Statement
- org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks
public class RunBeforeTestClassCallbacks extends Statement
RunBeforeTestClassCallbacksis a custom JUnitStatementwhich 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 newRunBeforeTestClassCallbacksstatement.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevaluate()InvokeTestContextManager.beforeTestClass()and then evaluate the nextStatementin the execution chain (typically an instance ofRunBefores).
Constructor Detail
RunBeforeTestClassCallbacks
public RunBeforeTestClassCallbacks(Statement next, TestContextManager testContextManager)
Construct a newRunBeforeTestClassCallbacksstatement.- Parameters:
next- the nextStatementin the execution chaintestContextManager- the TestContextManager upon which to callbeforeTestClass()