AssertJ supports the comparison of BigDecimal and BigInteger with a String.
BigDecimal myBigDecimal = BigDecimal.valueOf(1.001); assertThat(myBigDecimal).isEqualTo("1.001"); // Compliant, FP BigInteger myBigInt = BigInteger.valueOf(1231); assertThat(myBigInt).isEqualTo("1231"); // Compliant, FP
- relates to
-
RSPEC-5845 Assertions comparing incompatible types should not be made
- Active
- links to