Adopt AssertJ Integer assertions

MSAL

Adopt AssertJ Integer assertions. Favor semantically explicit methods (e.g. myInteger.isZero() over myInteger.isEqualTo(0)).

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

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. Replace isCloseTo with isEqualTo
  2. Replace isNotCloseTo with isNotEqualTo
  3. Replace isEqualTo(0) with isZero()
  4. Replace isNotEqualTo(0) with isNotZero()
  5. Replace isEqualTo(1) with isOne()