\[~ann.campbell.2] I'm increasing the severity to CRITICAL with the agreement of [~mpaladin]: These issues must be fixed immediately - else you might ship broken code
This rule appears to have a bug/false-positive when using AssertJ's SoftAssertion feature. AssertJ has a static method (SoftAssertions.assertSoftly) that calls assertAll() after its soft assertions. Therefore, this case should not trigger the rule violation indicating 'assertAll' is needed:
----
import org.assertj.core.api.SoftAssertions;
import org.junit.Test;
public class Rule2970 {
@Test
public void test() {
SoftAssertions.assertSoftly(softly -> {
softly.assertThat(true).isTrue();
softly.assertThat(false).isFalse();
});
} // False-positive here: squid:S2970: "Add a call to 'assertAll' after all 'assertThat'."