Class RunPrepareTestInstanceCallbacks

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

public class RunPrepareTestInstanceCallbacks extends 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:
  • Constructor Details

    • RunPrepareTestInstanceCallbacks

      public RunPrepareTestInstanceCallbacks(Statement next, 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
  • Method Details