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> TAssertions.assertDoesNotThrow(ThrowingSupplier<T> supplier) Assert that execution of the suppliedsupplierdoes not throw any kind of exception.static <T> TAssertions.assertDoesNotThrow(ThrowingSupplier<T> supplier, String message) Assert that execution of the suppliedsupplierdoes not throw any kind of exception.static <T> TAssertions.assertDoesNotThrow(ThrowingSupplier<T> supplier, Supplier<String> messageSupplier) Assert that execution of the suppliedsupplierdoes not throw any kind of exception.static <T> TAssertions.assertTimeout(Duration timeout, ThrowingSupplier<T> supplier) Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.static <T> TAssertions.assertTimeout(Duration timeout, ThrowingSupplier<T> supplier, String message) Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.static <T> TAssertions.assertTimeout(Duration timeout, ThrowingSupplier<T> supplier, Supplier<String> messageSupplier) Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.static <T> TAssertions.assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier) Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.static <T> TAssertions.assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier, String message) Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.static <T> TAssertions.assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier, Supplier<String> messageSupplier) Assert that execution of the suppliedsuppliercompletes before the giventimeoutis 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 suppliedsuppliercompletes before the giventimeoutis exceeded.