Refaster rules related to AssertJ assertions over BigDecimals

Apache 2.0

Note that, contrary to collections of Refaster rules for other org.assertj.core.api.NumberAssert subtypes, these rules do not rewrite to/from BigDecimalAssert#isEqualTo(Object) and BigDecimalAssert#isNotEqualTo(Object). This is because BigDecimal#equals(Object) considers not only the numeric value of compared instances, but also their scale. As a result various seemingly straightforward transformations would actually subtly change the assertion's semantics. Source.

tech.picnic.errorprone.refasterrules.AssertJBigDecimalRulesRecipes
mod run . --recipe=tech.picnic.errorprone.refasterrules.AssertJBigDecimalRulesRecipes

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. Refaster template AssertJBigDecimalRules.AbstractBigDecimalAssertIsEqualByComparingTo
  2. Refaster template AssertJBigDecimalRules.AbstractBigDecimalAssertIsNotEqualByComparingTo