Package | Description |
---|---|
org.junit.jupiter.api |
JUnit Jupiter API for writing tests.
|
org.junit.jupiter.engine.descriptor |
Test descriptors used within the JUnit Jupiter test engine.
|
Modifier and Type | Field and Description |
---|---|
private Executable |
DynamicTest.executable |
Modifier and Type | Method and Description |
---|---|
Executable |
DynamicTest.getExecutable()
Get the
executable code block associated with this DynamicTest . |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
AssertAll.assertAll(Executable... executables) |
static void |
Assertions.assertAll(Executable... executables)
Assert that all supplied
executables do not throw
exceptions. |
(package private) static void |
AssertAll.assertAll(java.lang.String heading,
Executable... executables) |
static void |
Assertions.assertAll(java.lang.String heading,
Executable... executables)
Assert that all supplied
executables do not throw
exceptions. |
(package private) static void |
AssertDoesNotThrow.assertDoesNotThrow(Executable executable) |
static void |
Assertions.assertDoesNotThrow(Executable executable)
Assert that execution of the supplied
executable does
not throw any kind of exception. |
private static void |
AssertDoesNotThrow.assertDoesNotThrow(Executable executable,
java.lang.Object messageOrSupplier) |
(package private) static void |
AssertDoesNotThrow.assertDoesNotThrow(Executable executable,
java.lang.String message) |
static void |
Assertions.assertDoesNotThrow(Executable executable,
java.lang.String message)
Assert that execution of the supplied
executable does
not throw any kind of exception. |
(package private) static void |
AssertDoesNotThrow.assertDoesNotThrow(Executable executable,
java.util.function.Supplier<java.lang.String> messageSupplier) |
static void |
Assertions.assertDoesNotThrow(Executable executable,
java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that execution of the supplied
executable does
not throw any kind of exception. |
(package private) static <T extends java.lang.Throwable> |
AssertThrows.assertThrows(java.lang.Class<T> expectedType,
Executable executable) |
static <T extends java.lang.Throwable> |
Assertions.assertThrows(java.lang.Class<T> expectedType,
Executable executable)
Assert that execution of the supplied
executable throws
an exception of the expectedType and return the exception. |
private static <T extends java.lang.Throwable> |
AssertThrows.assertThrows(java.lang.Class<T> expectedType,
Executable executable,
java.lang.Object messageOrSupplier) |
(package private) static <T extends java.lang.Throwable> |
AssertThrows.assertThrows(java.lang.Class<T> expectedType,
Executable executable,
java.lang.String message) |
static <T extends java.lang.Throwable> |
Assertions.assertThrows(java.lang.Class<T> expectedType,
Executable executable,
java.lang.String message)
Assert that execution of the supplied
executable throws
an exception of the expectedType and return the exception. |
(package private) static <T extends java.lang.Throwable> |
AssertThrows.assertThrows(java.lang.Class<T> expectedType,
Executable executable,
java.util.function.Supplier<java.lang.String> messageSupplier) |
static <T extends java.lang.Throwable> |
Assertions.assertThrows(java.lang.Class<T> expectedType,
Executable executable,
java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that execution of the supplied
executable throws
an exception of the expectedType and return the exception. |
(package private) static void |
AssertTimeout.assertTimeout(java.time.Duration timeout,
Executable executable) |
static void |
Assertions.assertTimeout(java.time.Duration timeout,
Executable executable)
Assert that execution of the supplied
executable
completes before the given timeout is exceeded. |
(package private) static void |
AssertTimeout.assertTimeout(java.time.Duration timeout,
Executable executable,
java.lang.String message) |
static void |
Assertions.assertTimeout(java.time.Duration timeout,
Executable executable,
java.lang.String message)
Assert that execution of the supplied
executable
completes before the given timeout is exceeded. |
(package private) static void |
AssertTimeout.assertTimeout(java.time.Duration timeout,
Executable executable,
java.util.function.Supplier<java.lang.String> messageSupplier) |
static void |
Assertions.assertTimeout(java.time.Duration timeout,
Executable executable,
java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that execution of the supplied
executable
completes before the given timeout is exceeded. |
(package private) static void |
AssertTimeout.assertTimeoutPreemptively(java.time.Duration timeout,
Executable executable) |
static void |
Assertions.assertTimeoutPreemptively(java.time.Duration timeout,
Executable executable)
Assert that execution of the supplied
executable
completes before the given timeout is exceeded. |
(package private) static void |
AssertTimeout.assertTimeoutPreemptively(java.time.Duration timeout,
Executable executable,
java.lang.String message) |
static void |
Assertions.assertTimeoutPreemptively(java.time.Duration timeout,
Executable executable,
java.lang.String message)
Assert that execution of the supplied
executable
completes before the given timeout is exceeded. |
(package private) static void |
AssertTimeout.assertTimeoutPreemptively(java.time.Duration timeout,
Executable executable,
java.util.function.Supplier<java.lang.String> messageSupplier) |
static void |
Assertions.assertTimeoutPreemptively(java.time.Duration timeout,
Executable executable,
java.util.function.Supplier<java.lang.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(java.util.function.BooleanSupplier assumptionSupplier,
Executable executable)
Execute the supplied
Executable , but only if the supplied
assumption is valid. |
static DynamicTest |
DynamicTest.dynamicTest(java.lang.String displayName,
Executable executable)
Factory for creating a new
DynamicTest for the supplied display
name and executable code block. |
static DynamicTest |
DynamicTest.dynamicTest(java.lang.String displayName,
java.net.URI testSourceUri,
Executable executable)
Factory for creating a new
DynamicTest for the supplied display
name, custom test source URI , and executable code block. |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
AssertAll.assertAll(java.util.Collection<Executable> executables) |
static void |
Assertions.assertAll(java.util.Collection<Executable> executables)
Assert that all supplied
executables do not throw
exceptions. |
(package private) static void |
AssertAll.assertAll(java.util.stream.Stream<Executable> executables) |
static void |
Assertions.assertAll(java.util.stream.Stream<Executable> executables)
Assert that all supplied
executables do not throw
exceptions. |
(package private) static void |
AssertAll.assertAll(java.lang.String heading,
java.util.Collection<Executable> executables) |
static void |
Assertions.assertAll(java.lang.String heading,
java.util.Collection<Executable> executables)
Assert that all supplied
executables do not throw
exceptions. |
(package private) static void |
AssertAll.assertAll(java.lang.String heading,
java.util.stream.Stream<Executable> executables) |
static void |
Assertions.assertAll(java.lang.String heading,
java.util.stream.Stream<Executable> executables)
Assert that all supplied
executables do not throw
exceptions. |
Constructor and Description |
---|
DynamicTest(java.lang.String displayName,
java.net.URI testSourceUri,
Executable executable) |
Modifier and Type | Method and Description |
---|---|
private void |
ClassBasedTestDescriptor.executeAndMaskThrowable(Executable executable) |