注释类型 Repeat
@Target({METHOD,ANNOTATION_TYPE}) @Retention(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.
- 从以下版本开始:
- 2.0
- 作者:
- Rod Johnson, Sam Brannen
- 另请参阅:
Timed
,SpringJUnit4ClassRunner
,SpringMethodRule
,SpringRepeat
可选元素概要
可选元素 修饰符和类型 可选元素 说明 int
value
The number of times that the annotated test method should be repeated.
元素详细资料
value
int value
The number of times that the annotated test method should be repeated.- 默认值:
- 1