Package | Description |
---|---|
org.junit.jupiter.api |
JUnit Jupiter API for writing tests.
|
Modifier and Type | Method | Description |
---|---|---|
static <T> T |
Assertions.assertTimeout(java.time.Duration timeout,
ThrowingSupplier<T> supplier) |
Asserts that execution of the supplied
supplier
completes before the given timeout is exceeded. |
static <T> T |
Assertions.assertTimeout(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.lang.String message) |
Asserts that execution of the supplied
supplier
completes before the given timeout is exceeded. |
static <T> T |
Assertions.assertTimeout(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.util.function.Supplier<java.lang.String> messageSupplier) |
Asserts that execution of the supplied
supplier
completes before the given timeout is exceeded. |
static <T> T |
Assertions.assertTimeoutPreemptively(java.time.Duration timeout,
ThrowingSupplier<T> supplier) |
Asserts that execution of the supplied
supplier
completes before the given timeout is exceeded. |
static <T> T |
Assertions.assertTimeoutPreemptively(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.lang.String message) |
Asserts that execution of the supplied
supplier
completes before the given timeout is exceeded. |
static <T> T |
Assertions.assertTimeoutPreemptively(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.util.function.Supplier<java.lang.String> messageSupplier) |
Asserts that execution of the supplied
supplier
completes before the given timeout is exceeded. |