public class SpringRepeat
extends org.junit.runners.model.Statement
SpringRepeat
is a custom JUnit Statement
which adds support
for Spring's @Repeat
annotation by repeating the test the specified number of times.evaluate()
Constructor and Description |
---|
SpringRepeat(org.junit.runners.model.Statement next,
java.lang.reflect.Method testMethod)
Construct a new
SpringRepeat statement for the supplied
testMethod , retrieving the configured repeat count from the
@Repeat annotation on the supplied method. |
SpringRepeat(org.junit.runners.model.Statement next,
java.lang.reflect.Method testMethod,
int repeat)
Construct a new
SpringRepeat statement for the supplied
testMethod and repeat count. |
Modifier and Type | Method and Description |
---|---|
void |
evaluate()
Evaluate the next
statement in the execution chain
repeatedly, using the specified repeat count. |
protected static final Log logger
public SpringRepeat(org.junit.runners.model.Statement next, java.lang.reflect.Method testMethod)
SpringRepeat
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 chaintestMethod
- the current test methodTestAnnotationUtils.getRepeatCount(Method)
public SpringRepeat(org.junit.runners.model.Statement next, java.lang.reflect.Method testMethod, int repeat)
SpringRepeat
statement for the supplied
testMethod
and repeat
count.next
- the next Statement
in the execution chaintestMethod
- the current test methodrepeat
- the configured repeat count for the current test method