...

/

Assertion: assertAll()

Assertion: assertAll()

Let's describe the assertAll() method in JUnit 5.

We'll cover the following...

The assertAll() method

The assertAll() method asserts a group of assertions. To understand assertAll(), we need to understand the functional interface org.junit.jupiter.api.function.Executable first.

The Executable only has one method, void execute() throws Throwable, so it can be easily implemented ...