private int getRepetitions(final Repeat repeat) {
    int repetitions = DEFAULT_REPETITIONS;

    if (repeat != null) {
      if (!"".equals(repeat.property())) {
        repetitions = Integer.getInteger(repeat.property(), DEFAULT_REPETITIONS);
      } else {
        repetitions = repeat.value();
      }
    }

    if (repetitions < 1) {
      throw new IllegalArgumentException("Repeat value must be a positive integer");
    }

    return repetitions;
  }
The RepeatRule class is a JUnit TestRule that enables an appropriately {@literal @}Repeat
annotated test case method to be repeated a specified number of times.

@see org.junit.rules.TestRule
@see org.junit.runner.Description
@see org.junit.runners.model.Statement
geode-junit/src/main/java/org/apache/geode/test/junit/rules/RepeatRule.java