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
Methods 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 TypeMethodDescriptionstatic 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.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.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.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.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.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 TypeMethodDescriptionstatic 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. -
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.