@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.ANNOTATION_CLASS]) class 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.
Author
Rod Johnson
Author
Sam Brannen
Since
2.0
See Also
org.springframework.test.annotation.Timedorg.springframework.test.context.junit4.SpringJUnit4ClassRunnerorg.springframework.test.context.junit4.rules.SpringMethodRuleorg.springframework.test.context.junit4.statements.SpringRepeat
Repeat(value: Int)
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. |
val value: Int
The number of times that the annotated test method should be repeated. |