Package org.spincast.testing.junitrunner
Annotation Interface RepeatUntilSuccess
Annotation to specify that a test or a test class
will be ran until it succeeds or the max number of tries is
reached.
This should only be used for tests that you can't make pass 100% of the time. It shouldn't be use in general!
Also, this may be obvious, but notice that the code annotated with this will be ran more than once! Make sure this code does support it and doesn't have unwanted side effects.
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionint
Sleep time in milliseconds between two loops.
-
Element Details
-
value
int valueThe maximum number of loops.
-
-
-
sleep
int sleepSleep time in milliseconds between two loops.Default: no sleep.
- Default:
- 0
-