Top Description Constructors Methods
org.junit.jupiter.api

pack-priv Class AssertTimeout

extends Object
Class Inheritance
Static Imports
org.junit.jupiter.api.AssertionFailureBuilder.assertionFailure, org.junit.platform.commons.util.ExceptionUtils.throwAsUncheckedException

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.
Since
5.0

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
assertTimeout(Duration timeout, Executable executable)

pack-priv static void
assertTimeout(Duration timeout, Executable executable, @Nullable String message)

pack-priv static void
assertTimeout(Duration timeout, Executable executable, Supplier<@Nullable String> messageSupplier)

pack-priv static <T extends @Nullable Object> T
assertTimeout(Duration timeout, ThrowingSupplier<T> supplier)

pack-priv static <T extends @Nullable Object> T
assertTimeout(Duration timeout, ThrowingSupplier<T> supplier, @Nullable String message)

pack-priv static <T extends @Nullable Object> T
assertTimeout(Duration timeout, ThrowingSupplier<T> supplier, Supplier<@Nullable String> messageSupplier)

private static <T extends @Nullable Object> T
assertTimeout(Duration timeout, ThrowingSupplier<T> supplier, @Nullable Object messageOrSupplier)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AssertTimeoutback to summary
private AssertTimeout()

Method Detail

assertTimeoutback to summary
pack-priv static void assertTimeout(Duration timeout, Executable executable)
assertTimeoutback to summary
pack-priv static void assertTimeout(Duration timeout, Executable executable, @Nullable String message)
assertTimeoutback to summary
pack-priv static void assertTimeout(Duration timeout, Executable executable, Supplier<@Nullable String> messageSupplier)
assertTimeoutback to summary
pack-priv static <T extends @Nullable Object> T assertTimeout(Duration timeout, ThrowingSupplier<T> supplier)
assertTimeoutback to summary
pack-priv static <T extends @Nullable Object> T assertTimeout(Duration timeout, ThrowingSupplier<T> supplier, @Nullable String message)
assertTimeoutback to summary
pack-priv static <T extends @Nullable Object> T assertTimeout(Duration timeout, ThrowingSupplier<T> supplier, Supplier<@Nullable String> messageSupplier)
assertTimeoutback to summary
private static <T extends @Nullable Object> T assertTimeout(Duration timeout, ThrowingSupplier<T> supplier, @Nullable Object messageOrSupplier)