| Package | Description |
|---|---|
| org.junit.jupiter.api |
JUnit Jupiter API for writing tests.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) static <T> T |
AssertDoesNotThrow.assertDoesNotThrow(ThrowingSupplier<T> supplier) |
static <T> T |
Assertions.assertDoesNotThrow(ThrowingSupplier<T> supplier)
Assert that execution of the supplied
supplier does
not throw any kind of exception. |
private static <T> T |
AssertDoesNotThrow.assertDoesNotThrow(ThrowingSupplier<T> supplier,
java.lang.Object messageOrSupplier) |
(package private) static <T> T |
AssertDoesNotThrow.assertDoesNotThrow(ThrowingSupplier<T> supplier,
java.lang.String message) |
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.util.function.Supplier<java.lang.String> messageSupplier) |
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 |
AssertTimeout.assertTimeout(java.time.Duration timeout,
ThrowingSupplier<T> supplier) |
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. |
private static <T> T |
AssertTimeout.assertTimeout(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.lang.Object messageOrSupplier) |
(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.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.util.function.Supplier<java.lang.String> messageSupplier) |
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 |
AssertTimeoutPreemptively.assertTimeoutPreemptively(java.time.Duration timeout,
ThrowingSupplier<T> supplier) |
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 |
AssertTimeoutPreemptively.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.lang.String message)
Assert that execution of the supplied
supplier
completes before the given timeout is exceeded. |
(package private) static <T> T |
AssertTimeoutPreemptively.assertTimeoutPreemptively(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,
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,E extends java.lang.Throwable> |
AssertTimeoutPreemptively.assertTimeoutPreemptively(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.util.function.Supplier<java.lang.String> messageSupplier,
Assertions.TimeoutFailureFactory<E> failureFactory) |
static <T,E extends java.lang.Throwable> |
Assertions.assertTimeoutPreemptively(java.time.Duration timeout,
ThrowingSupplier<T> supplier,
java.util.function.Supplier<java.lang.String> messageSupplier,
Assertions.TimeoutFailureFactory<E> failureFactory)
Assert that execution of the supplied
supplier
completes before the given timeout is exceeded. |
private static <T> java.util.concurrent.Future<T> |
AssertTimeoutPreemptively.submitTask(ThrowingSupplier<T> supplier,
java.util.concurrent.atomic.AtomicReference<java.lang.Thread> threadReference,
java.util.concurrent.ExecutorService executorService) |