类 RunBeforeTestClassCallbacks

java.lang.Object
org.junit.runners.model.Statement
cn.taketoday.test.context.junit4.statements.RunBeforeTestClassCallbacks

public class RunBeforeTestClassCallbacks extends org.junit.runners.model.Statement
RunBeforeTestClassCallbacks is a custom JUnit Statement which allows the TestContext Framework to be plugged into the JUnit execution chain by calling beforeTestClass() on the supplied TestContextManager.
从以下版本开始:
4.0
作者:
Sam Brannen
另请参阅:
  • 字段详细资料

    • next

      private final org.junit.runners.model.Statement next
    • testContextManager

      private final TestContextManager testContextManager
  • 构造器详细资料

    • RunBeforeTestClassCallbacks

      public RunBeforeTestClassCallbacks(org.junit.runners.model.Statement next, TestContextManager testContextManager)
      Construct a new RunBeforeTestClassCallbacks statement.
      参数:
      next - the next Statement in the execution chain
      testContextManager - the TestContextManager upon which to call beforeTestClass()
  • 方法详细资料

    • evaluate

      public void evaluate() throws Throwable
      Invoke TestContextManager.beforeTestClass() and then evaluate the next Statement in the execution chain (typically an instance of RunBefores).
      指定者:
      evaluate 在类中 org.junit.runners.model.Statement
      抛出:
      Throwable