Class RepeatUtils
java.lang.Object
com.atlassian.bamboo.testutils.junit.rule.RepeatUtils
Utils for the
RepeatRule
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A generic test method descriptor. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Repeat
This method returns an instance of theRepeat
annotation containing default parameters.static @NotNull Repeat
getEffectiveRepeatAnnotation
(@NotNull RepeatUtils.TestMethod testMethod, @NotNull Map<String, Repeat> defaultRepeatSpecs) Get the effective repeat annotation for a given test case.
-
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 aRepeat
annotation with default values. -
getDefaultRepeatAnnotation
This method returns an instance of theRepeat
annotation containing default parameters. It works by finding and returning the annotation declared on itself.
-