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