类 SpringRepeat
- java.lang.Object
- org.junit.runners.model.Statement
- org.springframework.test.context.junit4.statements.SpringRepeat
public class SpringRepeat extends Statement
SpringRepeat
is a custom JUnitStatement
which adds support for Spring's@Repeat
annotation by repeating the test the specified number of times.- 从以下版本开始:
- 3.0
- 作者:
- Sam Brannen
- 另请参阅:
evaluate()
构造器概要
构造器 构造器 说明 SpringRepeat(Statement next, Method testMethod)
Construct a newSpringRepeat
statement for the suppliedtestMethod
, retrieving the configured repeat count from the@Repeat
annotation on the supplied method.SpringRepeat(Statement next, Method testMethod, int repeat)
Construct a newSpringRepeat
statement for the suppliedtestMethod
andrepeat
count.
构造器详细资料
SpringRepeat
public SpringRepeat(Statement next, Method testMethod)
Construct a newSpringRepeat
statement for the suppliedtestMethod
, retrieving the configured repeat count from the@Repeat
annotation on the supplied method.- 参数:
next
- the nextStatement
in the execution chaintestMethod
- the current test method- 另请参阅:
TestAnnotationUtils.getRepeatCount(Method)
SpringRepeat
public SpringRepeat(Statement next, Method testMethod, int repeat)
Construct a newSpringRepeat
statement for the suppliedtestMethod
andrepeat
count.- 参数:
next
- the nextStatement
in the execution chaintestMethod
- the current test methodrepeat
- the configured repeat count for the current test method