in junit-platform-testkit/src/main/java/org/junit/platform/testkit/engine/Assertions.java [37:60]
static void assertAll(String heading, Stream<Executable> executables) {
Preconditions.notNull(executables, "executables stream must not be null");
List<Throwable> failures = executables //
.peek(executable -> Preconditions.notNull(executable, "individual executables must not be null"))//
.map(executable -> {
try {
executable.execute();
return null;
}
catch (Throwable t) {
UnrecoverableExceptions.rethrowIfUnrecoverable(t);
return t;
}
}) //
.filter(Objects::nonNull) //
.collect(Collectors.toList());
if (!failures.isEmpty()) {
MultipleFailuresError multipleFailuresError = new MultipleFailuresError(heading, failures);
failures.forEach(multipleFailuresError::addSuppressed);
throw multipleFailuresError;
}
}