Uses of Interface
org.junit.jupiter.api.function.Executable
Packages that use Executable
Package
Description
JUnit Jupiter API for writing tests.
JUnit Jupiter API for writing extensions.
-
Uses of Executable in org.junit.jupiter.api
Subinterfaces of Executable in org.junit.jupiter.apiModifier and TypeInterfaceDescriptioninterface
NamedExecutable
joinsExecutable
andNamed
in a one self-typed functional interface.Methods in org.junit.jupiter.api with type parameters of type ExecutableModifier and TypeMethodDescriptionstatic <T extends Named<E>,
E extends Executable>
Stream<DynamicTest> Generate a stream of dynamic tests based on the given iterator.static <T extends Named<E>,
E extends Executable>
Stream<DynamicTest> Generate a stream of dynamic tests based on the given input stream.Methods in org.junit.jupiter.api that return ExecutableModifier and TypeMethodDescriptionDynamicTest.getExecutable()
Get theexecutable
code block associated with thisDynamicTest
.default Executable
NamedExecutable.getPayload()
Methods in org.junit.jupiter.api with parameters of type ExecutableModifier and TypeMethodDescriptionstatic void
Assertions.assertAll
(String heading, Executable... executables) Assert that all suppliedexecutables
do not throw exceptions.static void
Assertions.assertAll
(Executable... executables) Assert that all suppliedexecutables
do not throw exceptions.static void
Assertions.assertDoesNotThrow
(Executable executable) Assert that execution of the suppliedexecutable
does not throw any kind of exception.static void
Assertions.assertDoesNotThrow
(Executable executable, String message) Assert that execution of the suppliedexecutable
does not throw any kind of exception.static void
Assertions.assertDoesNotThrow
(Executable executable, Supplier<String> messageSupplier) Assert that execution of the suppliedexecutable
does not throw any kind of exception.static <T extends Throwable>
TAssertions.assertThrows
(Class<T> expectedType, Executable executable) Assert that execution of the suppliedexecutable
throws an exception of theexpectedType
and return the exception.static <T extends Throwable>
TAssertions.assertThrows
(Class<T> expectedType, Executable executable, String message) Assert that execution of the suppliedexecutable
throws an exception of theexpectedType
and return the exception.static <T extends Throwable>
TAssertions.assertThrows
(Class<T> expectedType, Executable executable, Supplier<String> messageSupplier) Assert that execution of the suppliedexecutable
throws an exception of theexpectedType
and return the exception.static <T extends Throwable>
TAssertions.assertThrowsExactly
(Class<T> expectedType, Executable executable) Assert that execution of the suppliedexecutable
throws an exception of exactly theexpectedType
and return the exception.static <T extends Throwable>
TAssertions.assertThrowsExactly
(Class<T> expectedType, Executable executable, String message) Assert that execution of the suppliedexecutable
throws an exception of exactly theexpectedType
and return the exception.static <T extends Throwable>
TAssertions.assertThrowsExactly
(Class<T> expectedType, Executable executable, Supplier<String> messageSupplier) Assert that execution of the suppliedexecutable
throws an exception of exactly theexpectedType
and return the exception.static void
Assertions.assertTimeout
(Duration timeout, Executable executable) Assert that execution of the suppliedexecutable
completes before the giventimeout
is exceeded.static void
Assertions.assertTimeout
(Duration timeout, Executable executable, String message) Assert that execution of the suppliedexecutable
completes before the giventimeout
is exceeded.static void
Assertions.assertTimeout
(Duration timeout, Executable executable, Supplier<String> messageSupplier) Assert that execution of the suppliedexecutable
completes before the giventimeout
is exceeded.static void
Assertions.assertTimeoutPreemptively
(Duration timeout, Executable executable) Assert that execution of the suppliedexecutable
completes before the giventimeout
is exceeded.static void
Assertions.assertTimeoutPreemptively
(Duration timeout, Executable executable, String message) Assert that execution of the suppliedexecutable
completes before the giventimeout
is exceeded.static void
Assertions.assertTimeoutPreemptively
(Duration timeout, Executable executable, Supplier<String> messageSupplier) Assert that execution of the suppliedexecutable
completes before the giventimeout
is exceeded.static void
Assumptions.assumingThat
(boolean assumption, Executable executable) Execute the suppliedExecutable
, but only if the supplied assumption is valid.static void
Assumptions.assumingThat
(BooleanSupplier assumptionSupplier, Executable executable) Execute the suppliedExecutable
, but only if the supplied assumption is valid.static DynamicTest
DynamicTest.dynamicTest
(String displayName, URI testSourceUri, Executable executable) Factory for creating a newDynamicTest
for the supplied display name, custom test sourceURI
, and executable code block.static DynamicTest
DynamicTest.dynamicTest
(String displayName, Executable executable) Factory for creating a newDynamicTest
for the supplied display name and executable code block.Method parameters in org.junit.jupiter.api with type arguments of type ExecutableModifier and TypeMethodDescriptionstatic void
Assertions.assertAll
(String heading, Collection<Executable> executables) Assert that all suppliedexecutables
do not throw exceptions.static void
Assertions.assertAll
(String heading, Stream<Executable> executables) Assert that all suppliedexecutables
do not throw exceptions.static void
Assertions.assertAll
(Collection<Executable> executables) Assert that all suppliedexecutables
do not throw exceptions.static void
Assertions.assertAll
(Stream<Executable> executables) Assert that all suppliedexecutables
do not throw exceptions. -
Uses of Executable in org.junit.jupiter.api.extension
Methods in org.junit.jupiter.api.extension that return ExecutableModifier and TypeMethodDescriptionDynamicTestInvocationContext.getExecutable()
Get theExecutable
of this dynamic test invocation context.