Uses of Interface
org.junit.jupiter.api.function.ThrowingSupplier
-
Uses of ThrowingSupplier in org.junit.jupiter.api
Modifier and TypeMethodDescriptionstatic <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.static <T,
E extends Throwable>
TAssertions.assertTimeoutPreemptively
(Duration timeout, ThrowingSupplier<T> supplier, Supplier<String> messageSupplier, Assertions.TimeoutFailureFactory<E> failureFactory) Assert that execution of the suppliedsupplier
completes before the giventimeout
is exceeded.