class AssertTimeout
extends java.lang.Object
AssertTimeout
is a collection of utility methods that support asserting
the execution of the code under test did not take longer than the timeout duration.Modifier | Constructor and Description |
---|---|
private |
AssertTimeout() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
assertTimeout(java.time.Duration timeout,
Executable executable) |
(package private) static void |
assertTimeout(java.time.Duration timeout,
Executable executable,
java.lang.String message) |
(package private) static void |
assertTimeout(java.time.Duration timeout,
Executable executable,
java.util.function.Supplier<java.lang.String> messageSupplier) |
(package private) static <T> T |
assertTimeout(java.time.Duration timeout,
ThrowingSupplier<T> supplier) |
(package private) static <T> T |
assertTimeout(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.lang.String message) |
(package private) static <T> T |
assertTimeout(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.util.function.Supplier<java.lang.String> messageSupplier) |
(package private) static void |
assertTimeoutPreemptively(java.time.Duration timeout,
Executable executable) |
(package private) static void |
assertTimeoutPreemptively(java.time.Duration timeout,
Executable executable,
java.lang.String message) |
(package private) static void |
assertTimeoutPreemptively(java.time.Duration timeout,
Executable executable,
java.util.function.Supplier<java.lang.String> messageSupplier) |
(package private) static <T> T |
assertTimeoutPreemptively(java.time.Duration timeout,
ThrowingSupplier<T> supplier) |
(package private) static <T> T |
assertTimeoutPreemptively(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.lang.String message) |
(package private) static <T> T |
assertTimeoutPreemptively(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.util.function.Supplier<java.lang.String> messageSupplier) |
static void assertTimeout(java.time.Duration timeout, Executable executable)
static void assertTimeout(java.time.Duration timeout, Executable executable, java.lang.String message)
static void assertTimeout(java.time.Duration timeout, Executable executable, java.util.function.Supplier<java.lang.String> messageSupplier)
static <T> T assertTimeout(java.time.Duration timeout, ThrowingSupplier<T> supplier)
static <T> T assertTimeout(java.time.Duration timeout, ThrowingSupplier<T> supplier, java.lang.String message)
static <T> T assertTimeout(java.time.Duration timeout, ThrowingSupplier<T> supplier, java.util.function.Supplier<java.lang.String> messageSupplier)
static void assertTimeoutPreemptively(java.time.Duration timeout, Executable executable)
static void assertTimeoutPreemptively(java.time.Duration timeout, Executable executable, java.lang.String message)
static void assertTimeoutPreemptively(java.time.Duration timeout, Executable executable, java.util.function.Supplier<java.lang.String> messageSupplier)
static <T> T assertTimeoutPreemptively(java.time.Duration timeout, ThrowingSupplier<T> supplier)
static <T> T assertTimeoutPreemptively(java.time.Duration timeout, ThrowingSupplier<T> supplier, java.lang.String message)
static <T> T assertTimeoutPreemptively(java.time.Duration timeout, ThrowingSupplier<T> supplier, java.util.function.Supplier<java.lang.String> messageSupplier)