DecimalUtils { public static boolean lte(BigDecimal left, BigDecimal right) { return left.compareTo(right) < 1; }  static boolean lt(BigDecimal left, BigDecimal right); static boolean lte(BigDecimal left, BigDecimal right); static boolean gt(BigDecimal left, BigDecimal right); static boolean gte(BigDecimal left, BigDecimal right); static final int SCALE_2; static final BigDecimal ZERO; }
@Test public void test_lte() { Assertions.assertTrue(DecimalUtils.lte(BigDecimal.valueOf(100), BigDecimal.valueOf(123))); Assertions.assertTrue(DecimalUtils.lte(BigDecimal.valueOf(100), BigDecimal.valueOf(100))); Assertions.assertFalse(DecimalUtils.lte(BigDecimal.valueOf(123), BigDecimal.valueOf(100))); }