org.springframework.test.context.junit4.statements

Class RunAfterTestExecutionCallbacks

  • java.lang.Object
    • org.junit.runners.model.Statement
      • org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks


  • public class RunAfterTestExecutionCallbacks
    extends org.junit.runners.model.Statement
    RunAfterTestExecutionCallbacks is a custom JUnit Statement which allows the Spring TestContext Framework to be plugged into the JUnit 4 execution chain by calling afterTestExecution() on the supplied TestContextManager.

    NOTE: This class requires JUnit 4.9 or higher.

    Since:
    5.0
    Author:
    Sam Brannen
    See Also:
    evaluate(), RunBeforeTestExecutionCallbacks
    • Constructor Detail

      • RunAfterTestExecutionCallbacks

        public RunAfterTestExecutionCallbacks(org.junit.runners.model.Statement next,
                                              java.lang.Object testInstance,
                                              java.lang.reflect.Method testMethod,
                                              TestContextManager testContextManager)
        Construct a new RunAfterTestExecutionCallbacks statement.
        Parameters:
        next - the next Statement in the execution chain
        testInstance - the current test instance (never null)
        testMethod - the test method which has just been executed on the test instance
        testContextManager - the TestContextManager upon which to call afterTestExecution()