Adopt AssertJ Short assertions

MSAL

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

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

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