Annotation Constructors: retry()

Indicates that execution of a test function or all test functions within annotated test container have to be retryed using the given RepeatStrategy (extracted from source).

Overall execution cycle including before, after and testRule callbacks are repeated!

If you need to repeat just test function execution, look on RepeatRunner.

By: Lis
Since 0.6.0
  • RetryAnnotation
    • Basic
      • Identifiable
      • Object
        • Anything
    • OptionalAnnotation
      • ConstrainedAnnotation
        • Annotation

no subtypes hierarchy

Initializer
RetryAnnotation(FunctionOrValueDeclaration source)
Parameters:
  • source

    Repeat strategy source which has to take no arguments and has to return instance of RepeatStrategy type. Either top-level function or value or test function container method or attribute.

Attributes
sourceshared FunctionOrValueDeclaration source

Repeat strategy source which has to take no arguments and has to return instance of RepeatStrategy type. Either top-level function or value or test function container method or attribute.

Inherited Attributes
Attributes inherited from: Object
hash, string
Inherited Methods
Methods inherited from: Object
equals