Annotation Type Repeat


@Retention(RUNTIME) @Target({METHOD,TYPE}) @Inherited public @interface Repeat
Repeats randomized test case a given number of times. Repetitions can start with a different seed (predictably derived from the first one) or start from the same seed every time (useful to check if a given test is truly predictable for a given seed or not).
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Repeat this many iterations.
    boolean
    Re-run all iterations with a constant seed.
  • Element Details

    • iterations

      int iterations
      Repeat this many iterations. Must be greater or equal 1.
      Default:
      1
    • useConstantSeed

      boolean useConstantSeed
      Re-run all iterations with a constant seed. This may be helpful in checking if a given test is really predictably random.
      Default:
      false