Uses of Interface
org.junit.jupiter.api.function.ThrowingConsumer
Packages that use ThrowingConsumer
Package
Description
JUnit Jupiter API for writing tests.
JUnit Jupiter API for writing extensions.
-
Uses of ThrowingConsumer in org.junit.jupiter.api
Methods in org.junit.jupiter.api with parameters of type ThrowingConsumerModifier and TypeMethodDescriptiondefault voidTestReporter.publishDirectory(String name, ThrowingConsumer<Path> action) Publish a directory with the supplied name written by the supplied action and attach it to the current test or container.default voidTestReporter.publishFile(String name, MediaType mediaType, ThrowingConsumer<Path> action) Deprecated.default voidTestReporter.publishFile(String name, MediaType mediaType, ThrowingConsumer<Path> action) Publish a file with the supplied name and media type written by the supplied action and attach it to the current test or container.static <T> Stream<DynamicTest> DynamicTest.stream(Iterator<? extends Named<T>> inputGenerator, ThrowingConsumer<? super T> testExecutor) Generate a stream of dynamic tests based on the given generator and test executor.static <T> Stream<DynamicTest> DynamicTest.stream(Iterator<T> inputGenerator, Function<? super T, String> displayNameGenerator, ThrowingConsumer<? super T> testExecutor) Generate a stream of dynamic tests based on the given generator and test executor.static <T> Stream<DynamicTest> DynamicTest.stream(Stream<? extends Named<T>> inputStream, ThrowingConsumer<? super T> testExecutor) Generate a stream of dynamic tests based on the given input stream and test executor.static <T> Stream<DynamicTest> DynamicTest.stream(Stream<T> inputStream, Function<? super T, String> displayNameGenerator, ThrowingConsumer<? super T> testExecutor) Generate a stream of dynamic tests based on the given input stream and test executor. -
Uses of ThrowingConsumer in org.junit.jupiter.api.extension
Methods in org.junit.jupiter.api.extension with parameters of type ThrowingConsumerModifier and TypeMethodDescriptionvoidExtensionContext.publishDirectory(String name, ThrowingConsumer<Path> action) Publish a directory with the supplied name written by the supplied action and attach it to the current test or container.default voidExtensionContext.publishFile(String name, MediaType mediaType, ThrowingConsumer<Path> action) Deprecated.voidExtensionContext.publishFile(String name, MediaType mediaType, ThrowingConsumer<Path> action) Publish a file with the supplied name written by the supplied action and attach it to the current test or container.
TestReporter.publishFile(String, MediaType, ThrowingConsumer)instead.