org.springframework.test.context.junit4.statements

Class RunPrepareTestInstanceCallbacks

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


  • public class RunPrepareTestInstanceCallbacks
    extends org.junit.runners.model.Statement
    RunPrepareTestInstanceCallbacks is a custom JUnit Statement which allows the Spring TestContext Framework to be plugged into the JUnit execution chain by calling prepareTestInstance() on the supplied TestContextManager.
    Since:
    4.2
    Author:
    Sam Brannen
    See Also:
    evaluate()
    • Constructor Detail

      • RunPrepareTestInstanceCallbacks

        public RunPrepareTestInstanceCallbacks(org.junit.runners.model.Statement next,
                                               java.lang.Object testInstance,
                                               TestContextManager testContextManager)
        Construct a new RunPrepareTestInstanceCallbacks statement.
        Parameters:
        next - the next Statement in the execution chain; never null
        testInstance - the current test instance; never null
        testContextManager - the TestContextManager upon which to call prepareTestInstance(); never null