Uses of Interface
org.junit.jupiter.api.function.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> TAssertions. assertDoesNotThrow(ThrowingSupplier<T> supplier)Assert that execution of the suppliedsupplierdoes not throw any kind of exception.static <T> TAssertions. assertDoesNotThrow(ThrowingSupplier<T> supplier, java.lang.String message)Assert that execution of the suppliedsupplierdoes not throw any kind of exception.static <T> TAssertions. assertDoesNotThrow(ThrowingSupplier<T> supplier, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that execution of the suppliedsupplierdoes not throw any kind of exception.static <T> TAssertions. assertTimeout(java.time.Duration timeout, ThrowingSupplier<T> supplier)Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.static <T> TAssertions. assertTimeout(java.time.Duration timeout, ThrowingSupplier<T> supplier, java.lang.String message)Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.static <T> TAssertions. assertTimeout(java.time.Duration timeout, ThrowingSupplier<T> supplier, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.static <T> TAssertions. assertTimeoutPreemptively(java.time.Duration timeout, ThrowingSupplier<T> supplier)Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.static <T> TAssertions. assertTimeoutPreemptively(java.time.Duration timeout, ThrowingSupplier<T> supplier, java.lang.String message)Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.static <T> TAssertions. assertTimeoutPreemptively(java.time.Duration timeout, ThrowingSupplier<T> supplier, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that execution of the suppliedsuppliercompletes before the giventimeoutis exceeded.