Uses of Interface
org.junit.jupiter.api.function.Executable
| Package | Description |
|---|---|
| org.junit.jupiter.api |
JUnit Jupiter API for writing tests.
|
| org.junit.jupiter.api.extension |
JUnit Jupiter API for writing extensions.
|
-
Uses of Executable in org.junit.jupiter.api
Methods in org.junit.jupiter.api that return Executable Modifier and Type Method Description ExecutableDynamicTest. getExecutable()Get theexecutablecode block associated with thisDynamicTest.Methods in org.junit.jupiter.api with parameters of type Executable Modifier and Type Method Description static voidAssertions. assertAll(java.lang.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, java.lang.String message)Assert that execution of the suppliedexecutabledoes not throw any kind of exception.static voidAssertions. assertDoesNotThrow(Executable executable, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that execution of the suppliedexecutabledoes not throw any kind of exception.static <T extends java.lang.Throwable>
TAssertions. assertThrows(java.lang.Class<T> expectedType, Executable executable)Assert that execution of the suppliedexecutablethrows an exception of theexpectedTypeand return the exception.static <T extends java.lang.Throwable>
TAssertions. assertThrows(java.lang.Class<T> expectedType, Executable executable, java.lang.String message)Assert that execution of the suppliedexecutablethrows an exception of theexpectedTypeand return the exception.static <T extends java.lang.Throwable>
TAssertions. assertThrows(java.lang.Class<T> expectedType, Executable executable, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that execution of the suppliedexecutablethrows an exception of theexpectedTypeand return the exception.static voidAssertions. assertTimeout(java.time.Duration timeout, Executable executable)Assert that execution of the suppliedexecutablecompletes before the giventimeoutis exceeded.static voidAssertions. assertTimeout(java.time.Duration timeout, Executable executable, java.lang.String message)Assert that execution of the suppliedexecutablecompletes before the giventimeoutis exceeded.static voidAssertions. assertTimeout(java.time.Duration timeout, Executable executable, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that execution of the suppliedexecutablecompletes before the giventimeoutis exceeded.static voidAssertions. assertTimeoutPreemptively(java.time.Duration timeout, Executable executable)Assert that execution of the suppliedexecutablecompletes before the giventimeoutis exceeded.static voidAssertions. assertTimeoutPreemptively(java.time.Duration timeout, Executable executable, java.lang.String message)Assert that execution of the suppliedexecutablecompletes before the giventimeoutis exceeded.static voidAssertions. assertTimeoutPreemptively(java.time.Duration timeout, Executable executable, java.util.function.Supplier<java.lang.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(java.util.function.BooleanSupplier assumptionSupplier, Executable executable)Execute the suppliedExecutable, but only if the supplied assumption is valid.static DynamicTestDynamicTest. dynamicTest(java.lang.String displayName, java.net.URI testSourceUri, Executable executable)Factory for creating a newDynamicTestfor the supplied display name, custom test sourceURI, and executable code block.static DynamicTestDynamicTest. dynamicTest(java.lang.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 Executable Modifier and Type Method Description static voidAssertions. assertAll(java.lang.String heading, java.util.Collection<Executable> executables)Assert that all suppliedexecutablesdo not throw exceptions.static voidAssertions. assertAll(java.lang.String heading, java.util.stream.Stream<Executable> executables)Assert that all suppliedexecutablesdo not throw exceptions.static voidAssertions. assertAll(java.util.Collection<Executable> executables)Assert that all suppliedexecutablesdo not throw exceptions.static voidAssertions. assertAll(java.util.stream.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 Executable Modifier and Type Method Description ExecutableDynamicTestInvocationContext. getExecutable()Get theExecutableof this dynamic test invocation context.