Shorten AssertJ assertions

MSAL

Replace AssertJ assertions where a dedicated assertion is available for the same actual value.

org.openrewrite.java.testing.assertj.SimplifyAssertJAssertions
mod run . --recipe=org.openrewrite.java.testing.assertj.SimplifyAssertJAssertions

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. Simplify AssertJ assertions with literal arguments
  2. Simplify AssertJ assertions with literal arguments
  3. Simplify AssertJ assertions with literal arguments
  4. Simplify AssertJ assertions with literal arguments
  5. Simplify AssertJ assertions with literal arguments
  6. Simplify AssertJ assertions with literal arguments
  7. Simplify AssertJ assertions with literal arguments
  8. Simplify AssertJ assertions with literal arguments