类 RunAfterTestClassCallbacks

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

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

NOTE: This class requires JUnit 4.9 or higher.

从以下版本开始:
4.0
作者:
Sam Brannen
另请参阅:
  • 字段详细资料

    • next

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

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

    • RunAfterTestClassCallbacks

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

    • evaluate

      public void evaluate() throws Throwable
      Evaluate the next Statement in the execution chain (typically an instance of RunAfters), catching any exceptions thrown, and then invoke TestContextManager.afterTestClass().

      If the invocation of afterTestClass() throws an exception, it will also be tracked. Multiple exceptions will be combined into a MultipleFailureException.

      指定者:
      evaluate 在类中 org.junit.runners.model.Statement
      抛出:
      Throwable