Migrate JUnit 4 assertion failure exceptions to JUnit Jupiter

MSAL

Replace JUnit 4's junit.framework.AssertionFailedError and org.junit.ComparisonFailure with JUnit Jupiter's org.opentest4j.AssertionFailedError.

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

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

Recipe list

It runs these recipes, in this order.

  1. Change type junit.framework.AssertionFailedError to org.opentest4j.AssertionFailedError
  2. Change type ComparisonFailure to AssertionFailedError