Top Description Interfaces
module org.junit.jupiter.api

Package org.junit.jupiter.api.function

Annotations
@NullMarked
Imports
org.jspecify.annotations.NullMarked

Functional interfaces used within JUnit Jupiter.

Interface Summary

Modifier and TypeInterface and Description
public interface
Executable

Executable is a functional interface that can be used to implement any generic block of code that potentially throws a Throwable.

public interface
ThrowingConsumer<
the type of argument consumed
T extends @Nullable Object
>

ThrowingConsumer is a functional interface that can be used to implement any generic block of code that consumes an argument and potentially throws a Throwable.

public interface
ThrowingSupplier<
the type of argument supplied
T extends @Nullable Object
>

ThrowingSupplier is a functional interface that can be used to implement any generic block of code that returns an object and potentially throws a Throwable.