Package | Description |
---|---|
org.junit.jupiter.api |
JUnit Jupiter API for writing tests.
|
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,
String message) |
Assert that execution of the supplied
supplier does
not throw any kind of exception. |
static <T> T |
Assertions.assertDoesNotThrow(ThrowingSupplier<T> supplier,
Supplier<String> messageSupplier) |
Assert that execution of the supplied
supplier does
not throw any kind of exception. |
static <T> T |
Assertions.assertTimeout(Duration timeout,
ThrowingSupplier<T> supplier) |
Assert 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) |
Assert 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) |
Assert that execution of the supplied
supplier
completes before the given timeout is exceeded. |
static <T> T |
Assertions.assertTimeoutPreemptively(Duration timeout,
ThrowingSupplier<T> supplier) |
Assert 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) |
Assert 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) |
Assert that execution of the supplied
supplier
completes before the given timeout is exceeded. |
Copyright © 2019. All rights reserved.