org.springframework.test.annotation

Annotation Type Repeat



  • @Target(value={METHOD,ANNOTATION_TYPE})
     @Retention(value=RUNTIME)
     @Documented
    public @interface Repeat
    Test annotation to indicate that a test method should be invoked repeatedly.

    Note that the scope of execution to be repeated includes execution of the test method itself as well as any set up or tear down of the test fixture.

    As of Spring Framework 4.0, this annotation may be used as a meta-annotation to create custom composed annotations.

    Since:
    2.0
    Author:
    Rod Johnson, Sam Brannen
    See Also:
    Timed, SpringJUnit4ClassRunner, SpringMethodRule, SpringRepeat
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element and Description
      int value
      The number of times that the annotated test method should be repeated.
    • Element Detail

      • value

        public abstract int value
        The number of times that the annotated test method should be repeated.
        Default:
        1