Uses of Interface
org.junit.jupiter.api.function.ThrowingSupplier
Package | Description |
---|---|
org.junit.jupiter.api |
JUnit Jupiter API for writing tests.
|
-
Uses of ThrowingSupplier in org.junit.jupiter.api
Methods in org.junit.jupiter.api with parameters of type ThrowingSupplier Modifier and Type Method Description static <T> T
Assertions. assertDoesNotThrow(ThrowingSupplier<T> supplier)
Assert that execution of the suppliedsupplier
does not throw any kind of exception.static <T> T
Assertions. assertDoesNotThrow(ThrowingSupplier<T> supplier, String message)
Assert that execution of the suppliedsupplier
does not throw any kind of exception.static <T> T
Assertions. assertDoesNotThrow(ThrowingSupplier<T> supplier, Supplier<String> messageSupplier)
Assert that execution of the suppliedsupplier
does not throw any kind of exception.static <T> T
Assertions. assertTimeout(Duration timeout, ThrowingSupplier<T> supplier)
Assert that execution of the suppliedsupplier
completes before the giventimeout
is exceeded.static <T> T
Assertions. assertTimeout(Duration timeout, ThrowingSupplier<T> supplier, String message)
Assert that execution of the suppliedsupplier
completes before the giventimeout
is exceeded.static <T> T
Assertions. assertTimeout(Duration timeout, ThrowingSupplier<T> supplier, Supplier<String> messageSupplier)
Assert that execution of the suppliedsupplier
completes before the giventimeout
is exceeded.static <T> T
Assertions. assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier)
Assert that execution of the suppliedsupplier
completes before the giventimeout
is exceeded.static <T> T
Assertions. assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier, String message)
Assert that execution of the suppliedsupplier
completes before the giventimeout
is exceeded.static <T> T
Assertions. assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier, Supplier<String> messageSupplier)
Assert that execution of the suppliedsupplier
completes before the giventimeout
is exceeded.