Uses of Interface
org.junit.jupiter.api.Assertions.TimeoutFailureFactory
Packages that use Assertions.TimeoutFailureFactory
-
Uses of Assertions.TimeoutFailureFactory in org.junit.jupiter.api
Methods in org.junit.jupiter.api with parameters of type Assertions.TimeoutFailureFactoryModifier and TypeMethodDescriptionstatic <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.(package private) static <T,E extends Throwable>
TAssertTimeoutPreemptively.assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier, Supplier<String> messageSupplier, Assertions.TimeoutFailureFactory<E> failureFactory) private static <T,E extends Throwable>
TAssertTimeoutPreemptively.resolveFutureAndHandleException(Future<T> future, Duration timeout, Supplier<String> messageSupplier, Supplier<Thread> threadSupplier, Assertions.TimeoutFailureFactory<E> failureFactory)