Uses of Interface
org.junit.jupiter.api.function.ThrowingSupplier
Packages that use ThrowingSupplier
Package
Description
JUnit Jupiter API for writing tests.
Internal JUnit Jupiter utilities.
-
Uses of ThrowingSupplier in org.junit.jupiter.api
Methods in org.junit.jupiter.api with parameters of type ThrowingSupplierModifier and TypeMethodDescriptionAssertions.assertDoesNotThrow(ThrowingSupplier<T> supplier) Assert that execution of the suppliedsupplierdoes not throw any kind of exception.Assertions.assertDoesNotThrow(ThrowingSupplier<T> supplier, @Nullable String message) Assert that execution of the suppliedsupplierdoes not throw any kind of exception.Assertions.assertDoesNotThrow(ThrowingSupplier<T> supplier, Supplier<@Nullable String> messageSupplier) Assert that execution of the suppliedsupplierdoes not throw any kind of exception.Assertions.assertTimeout(Duration timeout, ThrowingSupplier<T> supplier) Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.Assertions.assertTimeout(Duration timeout, ThrowingSupplier<T> supplier, @Nullable String message) Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.Assertions.assertTimeout(Duration timeout, ThrowingSupplier<T> supplier, Supplier<@Nullable String> messageSupplier) Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.Assertions.assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier) Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.Assertions.assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier, @Nullable String message) Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.Assertions.assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier, Supplier<@Nullable String> messageSupplier) Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded. -
Uses of ThrowingSupplier in org.junit.jupiter.api.util
Methods in org.junit.jupiter.api.util with parameters of type ThrowingSupplierModifier and TypeMethodDescriptionPreemptiveTimeoutUtils.executeWithPreemptiveTimeout(Duration timeout, ThrowingSupplier<T> supplier, @Nullable Supplier<@Nullable String> messageSupplier, PreemptiveTimeoutUtils.TimeoutFailureFactory<E> failureFactory) Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.