Package generic.test.rule
Class RepeatedStatement
java.lang.Object
org.junit.runners.model.Statement
generic.test.rule.RepeatedStatement
public class RepeatedStatement
extends org.junit.runners.model.Statement
A JUnit test statement that repeats its base statement 1 or more times
- See Also:
-
Constructor Summary
ConstructorDescriptionRepeatedStatement
(org.junit.runners.model.Statement base, org.junit.runner.Description description, int count) Construct the statement -
Method Summary
-
Constructor Details
-
RepeatedStatement
public RepeatedStatement(org.junit.runners.model.Statement base, org.junit.runner.Description description, int count) Construct the statement- Parameters:
base
- the base statement to repeatdescription
- the description of the testcount
- the number of repetitions, must be positive
-
-
Method Details
-
evaluate
- Specified by:
evaluate
in classorg.junit.runners.model.Statement
- Throws:
Throwable
-