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
using a preemptive approach.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | assertTimeoutPreemptively(Duration timeout, Executable executable, Supplier<@Nullable String> messageSupplier)
|
| pack-priv static <T extends @Nullable Object> T | |
| pack-priv static <T extends @Nullable Object> T | |
| pack-priv static <T extends @Nullable Object> T | assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier, Supplier<@Nullable String> messageSupplier)
|
| private static AssertionFailedError |
| AssertTimeoutPreemptively | back to summary |
|---|---|
| private AssertTimeoutPreemptively() | |
| assertTimeoutPreemptively | back to summary |
|---|---|
| pack-priv static void assertTimeoutPreemptively(Duration timeout, Executable executable) | |
| assertTimeoutPreemptively | back to summary |
|---|---|
pack-priv static void assertTimeoutPreemptively(Duration timeout, Executable executable, @Nullable String message)
| |
| assertTimeoutPreemptively | back to summary |
|---|---|
pack-priv static void assertTimeoutPreemptively(Duration timeout, Executable executable, Supplier<@Nullable String> messageSupplier)
| |
| assertTimeoutPreemptively | back to summary |
|---|---|
| pack-priv static <T extends @Nullable Object> T assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier) | |
| assertTimeoutPreemptively | back to summary |
|---|---|
| pack-priv static <T extends @Nullable Object> T assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier, @Nullable String message) | |
| assertTimeoutPreemptively | back to summary |
|---|---|
| pack-priv static <T extends @Nullable Object> T assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier, Supplier<@Nullable String> messageSupplier) | |
| createAssertionFailure | back to summary |
|---|---|
| private static AssertionFailedError createAssertionFailure(Duration timeout, @Nullable Supplier<@Nullable String> messageSupplier, @Nullable Throwable cause, @Nullable Thread thread) | |