Package | Description |
---|---|
org.junit.jupiter.api |
JUnit Jupiter API for writing tests.
|
Modifier and Type | Method | Description |
---|---|---|
Executable |
DynamicTest.getExecutable() |
Get the
executable code block associated with this DynamicTest . |
Modifier and Type | Method | Description |
---|---|---|
static void |
Assertions.assertAll(String heading,
Executable... executables) |
Assert that all supplied
executables do not throw
exceptions. |
static void |
Assertions.assertAll(Executable... executables) |
Assert that all supplied
executables do not throw
exceptions. |
static void |
Assertions.assertDoesNotThrow(Executable executable) |
Assert that execution of the supplied
executable does
not throw any kind of exception. |
static void |
Assertions.assertDoesNotThrow(Executable executable,
String message) |
Assert that execution of the supplied
executable does
not throw any kind of exception. |
static void |
Assertions.assertDoesNotThrow(Executable executable,
Supplier<String> messageSupplier) |
Assert that execution of the supplied
executable does
not throw any kind of exception. |
static <T extends Throwable> |
Assertions.assertThrows(Class<T> expectedType,
Executable executable) |
Assert that execution of the supplied
executable throws
an exception of the expectedType and returns the exception. |
static <T extends Throwable> |
Assertions.assertThrows(Class<T> expectedType,
Executable executable,
String message) |
Assert that execution of the supplied
executable throws
an exception of the expectedType and returns the exception. |
static <T extends Throwable> |
Assertions.assertThrows(Class<T> expectedType,
Executable executable,
Supplier<String> messageSupplier) |
Assert that execution of the supplied
executable throws
an exception of the expectedType and returns the exception. |
static void |
Assertions.assertTimeout(Duration timeout,
Executable executable) |
Assert that execution of the supplied
executable
completes before the given timeout is exceeded. |
static void |
Assertions.assertTimeout(Duration timeout,
Executable executable,
String message) |
Assert that execution of the supplied
executable
completes before the given timeout is exceeded. |
static void |
Assertions.assertTimeout(Duration timeout,
Executable executable,
Supplier<String> messageSupplier) |
Assert that execution of the supplied
executable
completes before the given timeout is exceeded. |
static void |
Assertions.assertTimeoutPreemptively(Duration timeout,
Executable executable) |
Assert that execution of the supplied
executable
completes before the given timeout is exceeded. |
static void |
Assertions.assertTimeoutPreemptively(Duration timeout,
Executable executable,
String message) |
Assert that execution of the supplied
executable
completes before the given timeout is exceeded. |
static void |
Assertions.assertTimeoutPreemptively(Duration timeout,
Executable executable,
Supplier<String> messageSupplier) |
Assert that execution of the supplied
executable
completes before the given timeout is exceeded. |
static void |
Assumptions.assumingThat(boolean assumption,
Executable executable) |
Execute the supplied
Executable , but only if the supplied
assumption is valid. |
static void |
Assumptions.assumingThat(BooleanSupplier assumptionSupplier,
Executable executable) |
Execute the supplied
Executable , but only if the supplied
assumption is valid. |
static DynamicTest |
DynamicTest.dynamicTest(String displayName,
URI testSourceUri,
Executable executable) |
Factory for creating a new
DynamicTest for the supplied display
name, custom test source URI , and executable code block. |
static DynamicTest |
DynamicTest.dynamicTest(String displayName,
Executable executable) |
Factory for creating a new
DynamicTest for the supplied display
name and executable code block. |
Modifier and Type | Method | Description |
---|---|---|
static void |
Assertions.assertAll(String heading,
Collection<Executable> executables) |
Assert that all supplied
executables do not throw
exceptions. |
static void |
Assertions.assertAll(String heading,
Stream<Executable> executables) |
Assert that all supplied
executables do not throw
exceptions. |
static void |
Assertions.assertAll(Collection<Executable> executables) |
Assert that all supplied
executables do not throw
exceptions. |
static void |
Assertions.assertAll(Stream<Executable> executables) |
Assert that all supplied
executables do not throw
exceptions. |
Copyright © 2019. All rights reserved.