Package | Description |
---|---|
org.junit.jupiter.api |
JUnit Jupiter API for writing tests.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
Assertions.assertDoesNotThrow(ThrowingSupplier<T> supplier)
Assert that execution of the supplied
supplier does
not throw any kind of exception. |
(package private) static <T> T |
AssertDoesNotThrow.assertDoesNotThrow(ThrowingSupplier<T> supplier) |
private static <T> T |
AssertDoesNotThrow.assertDoesNotThrow(ThrowingSupplier<T> supplier,
java.lang.Object messageOrSupplier) |
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. |
(package private) static <T> T |
AssertDoesNotThrow.assertDoesNotThrow(ThrowingSupplier<T> supplier,
java.lang.String message) |
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. |
(package private) static <T> T |
AssertDoesNotThrow.assertDoesNotThrow(ThrowingSupplier<T> supplier,
java.util.function.Supplier<java.lang.String> messageSupplier) |
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. |
(package private) static <T> T |
AssertTimeout.assertTimeout(java.time.Duration timeout,
ThrowingSupplier<T> supplier) |
private static <T> T |
AssertTimeout.assertTimeout(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.lang.Object messageOrSupplier) |
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. |
(package private) static <T> T |
AssertTimeout.assertTimeout(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.lang.String message) |
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. |
(package private) static <T> T |
AssertTimeout.assertTimeout(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.util.function.Supplier<java.lang.String> messageSupplier) |
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. |
(package private) static <T> T |
AssertTimeout.assertTimeoutPreemptively(java.time.Duration timeout,
ThrowingSupplier<T> supplier) |
private static <T> T |
AssertTimeout.assertTimeoutPreemptively(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.lang.Object messageOrSupplier) |
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. |
(package private) static <T> T |
AssertTimeout.assertTimeoutPreemptively(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.lang.String message) |
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. |
(package private) static <T> T |
AssertTimeout.assertTimeoutPreemptively(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.util.function.Supplier<java.lang.String> messageSupplier) |