Class RunPreparetestInstanceCallbacks

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

@Deprecated(since="7.0") public class RunPreparetestInstanceCallbacks extends Statement
Deprecated.
since Spring Framework 7.0 in favor of the SpringExtension and JUnit Jupiter
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)
      Deprecated.
      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