Top Description Constructors Methods
org.junit.jupiter.api

pack-priv Class AssertTimeoutPreemptively

extends Object
Class Inheritance
Static Imports
org.junit.jupiter.api.AssertionFailureBuilder.assertionFailure, org.junit.jupiter.api.util.PreemptiveTimeoutUtils.executeWithPreemptiveTimeout

AssertTimeout is a collection of utility methods that support asserting the execution of the code under test did not take longer than the timeout duration using a preemptive approach.
Since
5.9.1

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
pack-priv static void
pack-priv static void
assertTimeoutPreemptively(Duration timeout, Executable executable, Supplier<@Nullable String> messageSupplier)

pack-priv static <T extends @Nullable Object> T
pack-priv static <T extends @Nullable Object> T
pack-priv static <T extends @Nullable Object> T
private static AssertionFailedError
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AssertTimeoutPreemptivelyback to summary
private AssertTimeoutPreemptively()

Method Detail

assertTimeoutPreemptivelyback to summary
pack-priv static void assertTimeoutPreemptively(Duration timeout, Executable executable)
assertTimeoutPreemptivelyback to summary
pack-priv static void assertTimeoutPreemptively(Duration timeout, Executable executable, @Nullable String message)
Annotations
@SuppressWarnings:NullAway
assertTimeoutPreemptivelyback to summary
pack-priv static void assertTimeoutPreemptively(Duration timeout, Executable executable, Supplier<@Nullable String> messageSupplier)
Annotations
@SuppressWarnings:NullAway
assertTimeoutPreemptivelyback to summary
pack-priv static <T extends @Nullable Object> T assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier)
assertTimeoutPreemptivelyback to summary
pack-priv static <T extends @Nullable Object> T assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier, @Nullable String message)
assertTimeoutPreemptivelyback to summary
pack-priv static <T extends @Nullable Object> T assertTimeoutPreemptively(Duration timeout, ThrowingSupplier<T> supplier, Supplier<@Nullable String> messageSupplier)
createAssertionFailureback to summary
private static AssertionFailedError createAssertionFailure(Duration timeout, @Nullable Supplier<@Nullable String> messageSupplier, @Nullable Throwable cause, @Nullable Thread thread)