AssertJ @Rule soft assertions to SoftAssertionsExtension

MSAL

Replaces @Rule fields of type JUnitSoftAssertions or JUnitBDDSoftAssertions with @InjectSoftAssertions fields, and registers @ExtendWith(SoftAssertionsExtension.class) on the test class. JUnit Jupiter does not run JUnit 4 rules, so soft assertions collected through such a rule would otherwise never be reported, silently passing tests that ought to fail.

org.openrewrite.java.testing.junit5.JUnitSoftAssertionsToSoftAssertionsExtension
mod run . --recipe=org.openrewrite.java.testing.junit5.JUnitSoftAssertionsToSoftAssertionsExtension

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.