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 theexecutablecode block associated with thisDynamicTest.Methods in org.junit.jupiter.api with parameters of type ExecutableModifier and TypeMethodDescription(package private) static voidAssertAll.assertAll(String heading, Executable... executables) (package private) static voidAssertAll.assertAll(Executable... executables) static voidAssertions.assertAll(String heading, Executable... executables) Assert that all suppliedexecutablesdo not throw exceptions.static voidAssertions.assertAll(Executable... executables) Assert that all suppliedexecutablesdo not throw exceptions.(package private) static voidAssertDoesNotThrow.assertDoesNotThrow(Executable executable) private static voidAssertDoesNotThrow.assertDoesNotThrow(Executable executable, Object messageOrSupplier) (package private) static voidAssertDoesNotThrow.assertDoesNotThrow(Executable executable, String message) (package private) static voidAssertDoesNotThrow.assertDoesNotThrow(Executable executable, Supplier<String> messageSupplier) static voidAssertions.assertDoesNotThrow(Executable executable) Assert that execution of the suppliedexecutabledoes not throw any kind of exception.static voidAssertions.assertDoesNotThrow(Executable executable, String message) Assert that execution of the suppliedexecutabledoes not throw any kind of exception.static voidAssertions.assertDoesNotThrow(Executable executable, Supplier<String> messageSupplier) Assert that execution of the suppliedexecutabledoes not throw any kind of exception.static <T extends Throwable>
TAssertions.assertThrows(Class<T> expectedType, Executable executable) Assert that execution of the suppliedexecutablethrows an exception of theexpectedTypeand return the exception.static <T extends Throwable>
TAssertions.assertThrows(Class<T> expectedType, Executable executable, String message) Assert that execution of the suppliedexecutablethrows an exception of theexpectedTypeand return the exception.static <T extends Throwable>
TAssertions.assertThrows(Class<T> expectedType, Executable executable, Supplier<String> messageSupplier) Assert that execution of the suppliedexecutablethrows an exception of theexpectedTypeand 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 suppliedexecutablethrows an exception of exactly theexpectedTypeand return the exception.static <T extends Throwable>
TAssertions.assertThrowsExactly(Class<T> expectedType, Executable executable, String message) Assert that execution of the suppliedexecutablethrows an exception of exactly theexpectedTypeand return the exception.static <T extends Throwable>
TAssertions.assertThrowsExactly(Class<T> expectedType, Executable executable, Supplier<String> messageSupplier) Assert that execution of the suppliedexecutablethrows an exception of exactly theexpectedTypeand 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 voidAssertions.assertTimeout(Duration timeout, Executable executable) Assert that execution of the suppliedexecutablecompletes before the giventimeoutis exceeded.static voidAssertions.assertTimeout(Duration timeout, Executable executable, String message) Assert that execution of the suppliedexecutablecompletes before the giventimeoutis exceeded.static voidAssertions.assertTimeout(Duration timeout, Executable executable, Supplier<String> messageSupplier) Assert that execution of the suppliedexecutablecompletes before the giventimeoutis exceeded.(package private) static voidAssertTimeout.assertTimeout(Duration timeout, Executable executable) (package private) static voidAssertTimeout.assertTimeout(Duration timeout, Executable executable, String message) (package private) static voidAssertTimeout.assertTimeout(Duration timeout, Executable executable, Supplier<String> messageSupplier) static voidAssertions.assertTimeoutPreemptively(Duration timeout, Executable executable) Assert that execution of the suppliedexecutablecompletes before the giventimeoutis exceeded.static voidAssertions.assertTimeoutPreemptively(Duration timeout, Executable executable, String message) Assert that execution of the suppliedexecutablecompletes before the giventimeoutis exceeded.static voidAssertions.assertTimeoutPreemptively(Duration timeout, Executable executable, Supplier<String> messageSupplier) Assert that execution of the suppliedexecutablecompletes before the giventimeoutis exceeded.(package private) static voidAssertTimeout.assertTimeoutPreemptively(Duration timeout, Executable executable) (package private) static voidAssertTimeout.assertTimeoutPreemptively(Duration timeout, Executable executable, String message) (package private) static voidAssertTimeout.assertTimeoutPreemptively(Duration timeout, Executable executable, Supplier<String> messageSupplier) static voidAssumptions.assumingThat(boolean assumption, Executable executable) Execute the suppliedExecutable, but only if the supplied assumption is valid.static voidAssumptions.assumingThat(BooleanSupplier assumptionSupplier, Executable executable) Execute the suppliedExecutable, but only if the supplied assumption is valid.static DynamicTestDynamicTest.dynamicTest(String displayName, URI testSourceUri, Executable executable) Factory for creating a newDynamicTestfor the supplied display name, custom test sourceURI, and executable code block.static DynamicTestDynamicTest.dynamicTest(String displayName, Executable executable) Factory for creating a newDynamicTestfor 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 voidAssertAll.assertAll(String heading, Collection<Executable> executables) (package private) static voidAssertAll.assertAll(String heading, Stream<Executable> executables) (package private) static voidAssertAll.assertAll(Collection<Executable> executables) (package private) static voidAssertAll.assertAll(Stream<Executable> executables) static voidAssertions.assertAll(String heading, Collection<Executable> executables) Assert that all suppliedexecutablesdo not throw exceptions.static voidAssertions.assertAll(String heading, Stream<Executable> executables) Assert that all suppliedexecutablesdo not throw exceptions.static voidAssertions.assertAll(Collection<Executable> executables) Assert that all suppliedexecutablesdo not throw exceptions.static voidAssertions.assertAll(Stream<Executable> executables) Assert that all suppliedexecutablesdo not throw exceptions.Constructors in org.junit.jupiter.api with parameters of type ExecutableModifierConstructorDescriptionprivateDynamicTest(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 theExecutableof 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 ExecutableDefaultDynamicTestInvocationContext.executableMethods in org.junit.jupiter.engine.descriptor that return ExecutableMethods in org.junit.jupiter.engine.descriptor with parameters of type ExecutableModifier and TypeMethodDescriptionprivate voidClassBasedTestDescriptor.executeAndMaskThrowable(Executable executable) Constructors in org.junit.jupiter.engine.descriptor with parameters of type ExecutableModifierConstructorDescription(package private)DefaultDynamicTestInvocationContext(Executable executable)