Uses of Interface
org.junit.jupiter.api.function.ThrowingSupplier

Packages that use ThrowingSupplier
Package Description
org.junit.jupiter.api
JUnit Jupiter API for writing tests.
  • Uses of ThrowingSupplier in org.junit.jupiter.api

    Methods in org.junit.jupiter.api with parameters of type ThrowingSupplier
    Modifier and Type Method Description
    static <T> T Assertions.assertDoesNotThrow​(ThrowingSupplier<T> supplier)
    Assert that execution of the supplied supplier does not throw any kind of exception.
    static <T> T Assertions.assertDoesNotThrow​(ThrowingSupplier<T> supplier, java.lang.String message)
    Assert that execution of the supplied supplier does not throw any kind of exception.
    static <T> T Assertions.assertDoesNotThrow​(ThrowingSupplier<T> supplier, java.util.function.Supplier<java.lang.String> messageSupplier)
    Assert that execution of the supplied supplier does not throw any kind of exception.
    static <T> T Assertions.assertTimeout​(java.time.Duration timeout, ThrowingSupplier<T> supplier)
    Assert that execution of the supplied supplier completes before the given timeout is exceeded.
    static <T> T Assertions.assertTimeout​(java.time.Duration timeout, ThrowingSupplier<T> supplier, java.lang.String message)
    Assert that execution of the supplied supplier completes before the given timeout is exceeded.
    static <T> T Assertions.assertTimeout​(java.time.Duration timeout, ThrowingSupplier<T> supplier, java.util.function.Supplier<java.lang.String> messageSupplier)
    Assert that execution of the supplied supplier completes before the given timeout is exceeded.
    static <T> T Assertions.assertTimeoutPreemptively​(java.time.Duration timeout, ThrowingSupplier<T> supplier)
    Assert that execution of the supplied supplier completes before the given timeout is exceeded.
    static <T> T Assertions.assertTimeoutPreemptively​(java.time.Duration timeout, ThrowingSupplier<T> supplier, java.lang.String message)
    Assert that execution of the supplied supplier completes before the given timeout is exceeded.
    static <T> T Assertions.assertTimeoutPreemptively​(java.time.Duration timeout, ThrowingSupplier<T> supplier, java.util.function.Supplier<java.lang.String> messageSupplier)
    Assert that execution of the supplied supplier completes before the given timeout is exceeded.