@org.junit.jupiter.api.extension.ExtendWith(org.assertj.core.api.junit.jupiter.SoftAssertionsExtension.class)
class JUnit5SoftAssertionsExample {
@org.assertj.core.api.junit.jupiter.InjectSoftAssertions
private org.assertj.core.api.SoftAssertions softly;
@org.junit.jupiter.api.Test
void junit5_soft_assertions_example() {
softly.assertThat(5).isLessThan(3);
// No need to call softly.assertAll(), this is automatically done by the SoftAssertionsExtension
}
}