Interface Assertions.TimeoutFailureFactory<T extends 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 Throwable>
Factory for timeout failures.
Since:
5.9.1
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    createTimeoutFailure(Duration timeout, @Nullable Supplier<@Nullable String> messageSupplier, @Nullable Throwable cause, @Nullable Thread testThread)
    Create a failure for the given timeout, message, and cause.
  • Method Details

    • createTimeoutFailure

      T createTimeoutFailure(Duration timeout, @Nullable Supplier<@Nullable String> messageSupplier, @Nullable Throwable cause, @Nullable Thread testThread)
      Create a failure for the given timeout, message, and cause.
      Returns:
      timeout failure; never null