static <T> T |
Assertions.assertDoesNotThrow(ThrowingSupplier<T> supplier) |
Asserts that execution of the supplied supplier does
not throw any kind of exception.
|
static <T> T |
Assertions.assertDoesNotThrow(ThrowingSupplier<T> supplier,
String message) |
Asserts that execution of the supplied supplier does
not throw any kind of exception.
|
static <T> T |
Assertions.assertDoesNotThrow(ThrowingSupplier<T> supplier,
Supplier<String> messageSupplier) |
Asserts that execution of the supplied supplier does
not throw any kind of exception.
|
static <T extends Throwable> T |
Assertions.assertThrows(Class<T> expectedType,
ThrowingSupplier<?> supplier) |
Asserts that execution of the given supplier throws
an exception of the expectedType and returns the exception.
|
static <T extends Throwable> T |
Assertions.assertThrows(Class<T> expectedType,
ThrowingSupplier<?> supplier,
String message) |
Asserts that execution of the given supplier throws
an exception of the expectedType and returns the exception.
|
static <T extends Throwable> T |
Assertions.assertThrows(Class<T> expectedType,
ThrowingSupplier<?> supplier,
Supplier<String> messageSupplier) |
Asserts that execution of the given supplier throws
an exception of the expectedType and returns the exception.
|
static <T> T |
Assertions.assertTimeout(Duration timeout,
ThrowingSupplier<T> supplier) |
Asserts that execution of the supplied supplier
completes before the given timeout is exceeded.
|
static <T> T |
Assertions.assertTimeout(Duration timeout,
ThrowingSupplier<T> supplier,
String message) |
Asserts that execution of the supplied supplier
completes before the given timeout is exceeded.
|
static <T> T |
Assertions.assertTimeout(Duration timeout,
ThrowingSupplier<T> supplier,
Supplier<String> messageSupplier) |
Asserts that execution of the supplied supplier
completes before the given timeout is exceeded.
|
static <T> T |
Assertions.assertTimeoutPreemptively(Duration timeout,
ThrowingSupplier<T> supplier) |
Asserts that execution of the supplied supplier
completes before the given timeout is exceeded.
|
static <T> T |
Assertions.assertTimeoutPreemptively(Duration timeout,
ThrowingSupplier<T> supplier,
String message) |
Asserts that execution of the supplied supplier
completes before the given timeout is exceeded.
|
static <T> T |
Assertions.assertTimeoutPreemptively(Duration timeout,
ThrowingSupplier<T> supplier,
Supplier<String> messageSupplier) |
Asserts that execution of the supplied supplier
completes before the given timeout is exceeded.
|