Module org.junit.jupiter.api
Package org.junit.jupiter.api
Interface Assertions.TimeoutFailureFactory<T extends java.lang.Throwable>
-
- Type Parameters:
T
- The type of error or exception created
- Enclosing class:
- Assertions
@API(status=INTERNAL, since="5.9.1") public static interface Assertions.TimeoutFailureFactory<T extends java.lang.Throwable>
Factory for timeout failures.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
createTimeoutFailure(java.time.Duration timeout, java.util.function.Supplier<java.lang.String> messageSupplier, java.lang.Throwable cause)
Create a failure for the given timeout, message, and cause.
-
-
-
Method Detail
-
createTimeoutFailure
T createTimeoutFailure(java.time.Duration timeout, java.util.function.Supplier<java.lang.String> messageSupplier, java.lang.Throwable cause)
Create a failure for the given timeout, message, and cause.- Returns:
- timeout failure; never
null
-
-