public final class FlakyTestRunner extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
FlakyTestRunner.Builder<X extends Throwable> |
static interface |
FlakyTestRunner.RunnableThrows<T extends Throwable> |
| Modifier and Type | Method and Description |
|---|---|
static <X extends Throwable> |
builder(@NotNull FlakyTestRunner.RunnableThrows<X> action)
Creates and returns a new Builder for the provided
action that might throw checked Exceptions. |
static FlakyTestRunner.Builder<RuntimeException> |
builderUnchecked(@NotNull Runnable action)
Creates and returns a new Builder for the provided
action that might throw un-checked Exceptions only. |
static <X extends Throwable> |
run(boolean flakyOnThisArch,
@NotNull FlakyTestRunner.RunnableThrows<X> action)
Deprecated.
|
static <X extends Throwable> |
run(boolean flakyOnThisArch,
@NotNull FlakyTestRunner.RunnableThrows<X> action,
int maxIterations)
Deprecated.
|
static <X extends Throwable> |
run(@NotNull FlakyTestRunner.RunnableThrows<X> action)
Deprecated.
|
@Deprecated public static <X extends Throwable> void run(@NotNull @NotNull FlakyTestRunner.RunnableThrows<X> action) throws X extends Throwable
action trying at most 2 times.X - exception typeaction - non-null action to performX - if an underlying exception is thrown despite retrying the specified number of timesX extends Throwable@Deprecated public static <X extends Throwable> void run(boolean flakyOnThisArch, @NotNull @NotNull FlakyTestRunner.RunnableThrows<X> action) throws X extends Throwable
action trying at most 2 times if the provided flakyOnTHisArch is true,
otherwise just runs the provided action once.X - exception typeflakyOnThisArch - indicating if the provided action isaction - non-null action to performX - if an underlying exception is thrown despite retrying the specified number of timesX extends Throwable@Deprecated public static <X extends Throwable> void run(boolean flakyOnThisArch, @NotNull @NotNull FlakyTestRunner.RunnableThrows<X> action, int maxIterations) throws X extends Throwable
action trying at most the provided maxIteration times if the
provided flakyOnTHisArch is true, otherwise just runs the provided action once.X - exception typeflakyOnThisArch - indicating if the provided action isaction - non-null action to performX - if an underlying exception is thrown despite retrying the specified number of timesX extends Throwablepublic static <X extends Throwable> FlakyTestRunner.Builder<X> builder(@NotNull @NotNull FlakyTestRunner.RunnableThrows<X> action)
action that might throw checked Exceptions.X - exception typeaction - to performpublic static FlakyTestRunner.Builder<RuntimeException> builderUnchecked(@NotNull @NotNull Runnable action)
action that might throw un-checked Exceptions only.action - to performCopyright © 2022. All rights reserved.