java.lang.Object
com.atlassian.bamboo.testutils.junit.rule.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 Details

    • RetryRule

      public RetryRule(int retryCount)
  • Method Details

    • 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