Adopt AssertJ Long assertions

MSAL

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

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

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()