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 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 repeat
      description - the description of the test
      count - the number of repetitions, must be positive
  • Method Details

    • evaluate

      public void evaluate() throws Throwable
      Specified by:
      evaluate in class org.junit.runners.model.Statement
      Throws:
      Throwable