EqualsCompareStrategy implements CompareStrategy<Object> { @Override public boolean equalsObjects(Object value1, Object value2) { return (value1.equals(value2)); }  @Override boolean equalsObjects(Object value1, Object value2);  }
@Test public void testEqualsObjects0001() { BigDecimal decimal1 = new BigDecimal("1.00"); BigDecimal decimal2 = new BigDecimal("1.0"); EqualsCompareStrategy strategy = new EqualsCompareStrategy(); boolean ret = strategy.equalsObjects(decimal1, decimal2); assertFalse(ret); }
@Test public void testEqualsObjects0002() { BigDecimal decimal1 = new BigDecimal("1.00"); BigDecimal decimal2 = new BigDecimal("1.00"); EqualsCompareStrategy strategy = new EqualsCompareStrategy(); boolean ret = strategy.equalsObjects(decimal1, decimal2); assertTrue(ret); }