Uses of Interface
org.junit.jupiter.api.function.ThrowingSupplier
Packages that use ThrowingSupplier
-
Uses of ThrowingSupplier in org.junit.jupiter.api
Methods in org.junit.jupiter.api with parameters of type ThrowingSupplierModifier 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.