类 RepeatTest
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.Loggerprivate final org.junit.runners.model.Statementprivate final intprivate final Method -
构造器概要
构造器构造器说明RepeatTest(org.junit.runners.model.Statement next, Method testMethod) Construct a newRepeatTeststatement for the suppliedtestMethod, retrieving the configured repeat count from the@Repeatannotation on the supplied method.RepeatTest(org.junit.runners.model.Statement next, Method testMethod, int repeat) Construct a newRepeatTeststatement for the suppliedtestMethodandrepeatcount. -
方法概要
修饰符和类型方法说明voidevaluate()Evaluate the nextstatementin the execution chain repeatedly, using the specified repeat count.
-
字段详细资料
-
logger
protected static final cn.taketoday.logging.Logger logger -
next
private final org.junit.runners.model.Statement next -
testMethod
-
repeat
private final int repeat
-
-
构造器详细资料
-
RepeatTest
Construct a newRepeatTeststatement for the suppliedtestMethod, retrieving the configured repeat count from the@Repeatannotation on the supplied method.- 参数:
next- the nextStatementin the execution chaintestMethod- the current test method- 另请参阅:
-
RepeatTest
Construct a newRepeatTeststatement for the suppliedtestMethodandrepeatcount.- 参数:
next- the nextStatementin the execution chaintestMethod- the current test methodrepeat- the configured repeat count for the current test method
-
-
方法详细资料
-
evaluate
Evaluate the nextstatementin the execution chain repeatedly, using the specified repeat count.- 指定者:
evaluate在类中org.junit.runners.model.Statement- 抛出:
Throwable
-