All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.testing.junitrunner.RepeatUntilSuccess.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version






RepeatUntilSuccess (org.spincast:spincast-framework 1.14.0 API)












org.spincast.testing.junitrunner

Annotation Type RepeatUntilSuccess



  • @Target(value={TYPE,METHOD})
     @Retention(value=RUNTIME)
    public @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

      Required Elements 
      Modifier and Type Required Element and Description
      int value
      The maximum number of loops.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element and Description
      int sleep
      Sleep time in milliseconds between two loops.
    • Element Detail

      • value

        public abstract int value
        The maximum number of loops.
      • sleep

        public abstract int sleep
        Sleep time in milliseconds between two loops.

        Default: no sleep.

        Default:
        0

Copyright © 2019. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy