AssertJ @Rule soft assertions to SoftAssertionsExtension
MSALReplaces @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. JUnitSoftAssertionsToSoftAssertionsExtensionmod run . --recipe= org. openrewrite. java. testing. junit5. JUnitSoftAssertionsToSoftAssertionsExtensionInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.