| Package | Description |
|---|---|
| org.junit.jupiter.api |
JUnit Jupiter API for writing tests.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) static <T,E extends java.lang.Throwable> |
AssertTimeoutPreemptively.assertTimeoutPreemptively(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.util.function.Supplier<java.lang.String> messageSupplier,
Assertions.TimeoutFailureFactory<E> failureFactory) |
static <T,E extends java.lang.Throwable> |
Assertions.assertTimeoutPreemptively(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.util.function.Supplier<java.lang.String> messageSupplier,
Assertions.TimeoutFailureFactory<E> failureFactory)
Assert that execution of the supplied
supplier
completes before the given timeout is exceeded. |
private static <T,E extends java.lang.Throwable> |
AssertTimeoutPreemptively.resolveFutureAndHandleException(java.util.concurrent.Future<T> future,
java.time.Duration timeout,
java.util.function.Supplier<java.lang.String> messageSupplier,
java.util.function.Supplier<java.lang.Thread> threadSupplier,
Assertions.TimeoutFailureFactory<E> failureFactory) |