In assertj 3.6.0 , the static method SoftAssertions#assertSoftly has been added to the API. This is an alternative to the JUnitSoftAssertions rule and AutoCloseableSoftAssertions to avoid the need to call assertAll at the end of a test method.
Rule RSPEC-2970 should therefore not report any issue when assertions without a call to assertAll are found inside inside a lambda being a parameter for SoftAssertions#assertSoftly.
- links to