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

public class RepeatTest extends org.junit.runners.model.Statement
RepeatTest is a custom JUnit Statement which adds support for Framework's @Repeat annotation by repeating the test the specified number of times.
从以下版本开始:
4.0
作者:
Sam Brannen
另请参阅:
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    protected static final cn.taketoday.logging.Logger
     
    private final org.junit.runners.model.Statement
     
    private final int
     
    private final Method
     
  • 构造器概要

    构造器
    构造器
    说明
    RepeatTest(org.junit.runners.model.Statement next, Method testMethod)
    Construct a new RepeatTest statement for the supplied testMethod, retrieving the configured repeat count from the @Repeat annotation on the supplied method.
    RepeatTest(org.junit.runners.model.Statement next, Method testMethod, int repeat)
    Construct a new RepeatTest statement for the supplied testMethod and repeat count.
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    Evaluate the next statement in the execution chain repeatedly, using the specified repeat count.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • logger

      protected static final cn.taketoday.logging.Logger logger
    • next

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

      private final Method testMethod
    • repeat

      private final int repeat
  • 构造器详细资料

    • RepeatTest

      public RepeatTest(org.junit.runners.model.Statement next, Method testMethod)
      Construct a new RepeatTest statement for the supplied testMethod, retrieving the configured repeat count from the @Repeat annotation on the supplied method.
      参数:
      next - the next Statement in the execution chain
      testMethod - the current test method
      另请参阅:
    • RepeatTest

      public RepeatTest(org.junit.runners.model.Statement next, Method testMethod, int repeat)
      Construct a new RepeatTest statement for the supplied testMethod and repeat count.
      参数:
      next - the next Statement in the execution chain
      testMethod - the current test method
      repeat - the configured repeat count for the current test method
  • 方法详细资料

    • evaluate

      public void evaluate() throws Throwable
      Evaluate the next statement in the execution chain repeatedly, using the specified repeat count.
      指定者:
      evaluate 在类中 org.junit.runners.model.Statement
      抛出:
      Throwable