Class RunAfterTestClassCallbacks
java.lang.Object
org.junit.runners.model.Statement
org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks
RunAfterTestClassCallbacks is a custom JUnit Statement which allows
 the Spring TestContext Framework to be plugged into the JUnit execution chain
 by calling afterTestClass() on the supplied
 TestContextManager.
 NOTE: This class requires JUnit 4.9 or higher.
- Since:
- 3.0
- Author:
- Sam Brannen
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionRunAfterTestClassCallbacks(Statement next, TestContextManager testContextManager) Construct a newRunAfterTestClassCallbacksstatement.
- 
Method SummaryModifier and TypeMethodDescriptionvoidevaluate()Evaluate the nextStatementin the execution chain (typically an instance ofRunAfters), catching any exceptions thrown, and then invokeTestContextManager.afterTestClass().
- 
Constructor Details- 
RunAfterTestClassCallbacksConstruct a newRunAfterTestClassCallbacksstatement.- Parameters:
- next- the next- Statementin the execution chain
- testContextManager- the TestContextManager upon which to call- afterTestClass()
 
 
- 
- 
Method Details- 
evaluateEvaluate the nextStatementin the execution chain (typically an instance ofRunAfters), catching any exceptions thrown, and then invokeTestContextManager.afterTestClass().If the invocation of afterTestClass()throws an exception, it will also be tracked. Multiple exceptions will be combined into aMultipleFailureException.
 
-