Class RepeatUtils

java.lang.Object
com.atlassian.bamboo.testutils.junit.rule.RepeatUtils

public class RepeatUtils extends Object
Utils for the RepeatRule.
  • Method Details

    • getEffectiveRepeatAnnotation

      @NotNull public static @NotNull Repeat getEffectiveRepeatAnnotation(@NotNull @NotNull RepeatUtils.TestMethod testMethod, @NotNull @NotNull Map<String,Repeat> defaultRepeatSpecs)
      Get the effective repeat annotation for a given test case. This method will look up custom repeat annotations on the method, if not found it will check default repeat specs, and if still not found, it will return a Repeat annotation with default values.
    • getDefaultRepeatAnnotation

      @NotNull public static @NotNull Repeat getDefaultRepeatAnnotation()
      This method returns an instance of the Repeat annotation containing default parameters. It works by finding and returning the annotation declared on itself.