Adopt AssertJ Float assertions

MSAL

Adopt AssertJ Float assertions. Favor semantically explicit methods (e.g. myFloat.isZero() over myFloat.isEqualTo(0.0f)).

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

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