Annotation Interface Repeat
@Target({METHOD,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
@Deprecated(since="7.0")
public @interface Repeat
Deprecated.
Test annotation for use with JUnit 4 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. When used with the
SpringMethodRule
, the scope additionally includes
preparation of the test instance.
This annotation may be used as a meta-annotation to create custom composed annotations.
- Since:
- 2.0
- Author:
- Rod Johnson, Sam Brannen
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionint
Deprecated.The number of times that the annotated test method should be repeated.
-
Element Details
-
value
int valueDeprecated.The number of times that the annotated test method should be repeated.- Default:
1
-
SpringExtension
and JUnit Jupiter