Class RetryRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class RetryRule
    extends Object
    implements org.junit.rules.TestRule
    Every use case of this rule should be considered twice before usage. This was created in order to deal with time-based unit tests, and it's a clear anti-pattern.
    • Constructor Detail

      • RetryRule

        public RetryRule​(int retryCount)
    • Method Detail

      • apply

        public org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base,
                                                       org.junit.runner.Description description)
        Specified by:
        apply in interface org.junit.rules.TestRule