@FunctionalInterface public static interface FlakyTestRunner.RunnableThrows<T extends Throwable>
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Performs an action.
|
default void |
runOrThrow()
Performs the action wrapping any thrown Throwable in an IllegalStateException.
|
default void |
runOrThrow(Function<? super Throwable,? extends RuntimeException> exceptionMapper)
Performs the action wrapping any thrown Throwable using the provided
exceptionMapper. |
default void runOrThrow()
IllegalStateException - if an underlying Throwable is throwndefault void runOrThrow(Function<? super Throwable,? extends RuntimeException> exceptionMapper)
exceptionMapper.RuntimeException - if an underlying Throwable is thrownCopyright © 2023. All rights reserved.