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.
Test descriptors used within the JUnit Jupiter test engine.
-
Uses of Executable in org.junit.jupiter.api
Fields in org.junit.jupiter.api declared as ExecutableMethods in org.junit.jupiter.api that return ExecutableModifier and TypeMethodDescriptionDynamicTest.getExecutable()
Get theexecutable
code block associated with thisDynamicTest
.Methods in org.junit.jupiter.api with parameters of type ExecutableModifier and TypeMethodDescription(package private) static void
AssertAll.assertAll
(String heading, Executable... executables) (package private) static void
AssertAll.assertAll
(Executable... executables) static 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.(package private) static void
AssertDoesNotThrow.assertDoesNotThrow
(Executable executable) private static void
AssertDoesNotThrow.assertDoesNotThrow
(Executable executable, Object messageOrSupplier) (package private) static void
AssertDoesNotThrow.assertDoesNotThrow
(Executable executable, String message) (package private) static void
AssertDoesNotThrow.assertDoesNotThrow
(Executable executable, Supplier<String> messageSupplier) 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.(package private) static <T extends Throwable>
TAssertThrows.assertThrows
(Class<T> expectedType, Executable executable) private static <T extends Throwable>
TAssertThrows.assertThrows
(Class<T> expectedType, Executable executable, Object messageOrSupplier) (package private) static <T extends Throwable>
TAssertThrows.assertThrows
(Class<T> expectedType, Executable executable, String message) (package private) static <T extends Throwable>
TAssertThrows.assertThrows
(Class<T> expectedType, Executable executable, Supplier<String> messageSupplier) 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.(package private) static <T extends Throwable>
TAssertThrowsExactly.assertThrowsExactly
(Class<T> expectedType, Executable executable) private static <T extends Throwable>
TAssertThrowsExactly.assertThrowsExactly
(Class<T> expectedType, Executable executable, Object messageOrSupplier) (package private) static <T extends Throwable>
TAssertThrowsExactly.assertThrowsExactly
(Class<T> expectedType, Executable executable, String message) (package private) static <T extends Throwable>
TAssertThrowsExactly.assertThrowsExactly
(Class<T> expectedType, Executable executable, Supplier<String> messageSupplier) 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.(package private) static void
AssertTimeout.assertTimeout
(Duration timeout, Executable executable) (package private) static void
AssertTimeout.assertTimeout
(Duration timeout, Executable executable, String message) (package private) static void
AssertTimeout.assertTimeout
(Duration timeout, Executable executable, Supplier<String> messageSupplier) 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.(package private) static void
AssertTimeoutPreemptively.assertTimeoutPreemptively
(Duration timeout, Executable executable) (package private) static void
AssertTimeoutPreemptively.assertTimeoutPreemptively
(Duration timeout, Executable executable, String message) (package private) static void
AssertTimeoutPreemptively.assertTimeoutPreemptively
(Duration timeout, Executable executable, Supplier<String> messageSupplier) 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 TypeMethodDescription(package private) static void
AssertAll.assertAll
(String heading, Collection<Executable> executables) (package private) static void
AssertAll.assertAll
(String heading, Stream<Executable> executables) (package private) static void
AssertAll.assertAll
(Collection<Executable> executables) (package private) static void
AssertAll.assertAll
(Stream<Executable> executables) static 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.Constructors in org.junit.jupiter.api with parameters of type ExecutableModifierConstructorDescriptionprivate
DynamicTest
(String displayName, URI testSourceUri, Executable executable) -
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. -
Uses of Executable in org.junit.jupiter.engine.descriptor
Fields in org.junit.jupiter.engine.descriptor declared as ExecutableModifier and TypeFieldDescriptionprivate final Executable
DefaultDynamicTestInvocationContext.executable
Methods in org.junit.jupiter.engine.descriptor that return ExecutableMethods in org.junit.jupiter.engine.descriptor with parameters of type ExecutableModifier and TypeMethodDescriptionprivate void
ClassBasedTestDescriptor.executeAndMaskThrowable
(Executable executable) Constructors in org.junit.jupiter.engine.descriptor with parameters of type ExecutableModifierConstructorDescription(package private)
DefaultDynamicTestInvocationContext
(Executable executable)