EqualsFunction implements DDMExpressionFunction.Function2<Object, Object, Boolean> { @Override public Boolean apply(Object object1, Object object2) { return Objects.equals(_getValue(object1), _getValue(object2)); }  @Override Boolean apply(Object object1, Object object2); @Override String getName(); static final String NAME; }
@Test public void testApplyFalse1() { EqualsFunction equalsFunction = new EqualsFunction(); Assert.assertFalse(equalsFunction.apply("FORMS", "forms")); }
@Test public void testApplyFalse2() { EqualsFunction equalsFunction = new EqualsFunction(); Assert.assertFalse(equalsFunction.apply(null, "forms")); }
@Test public void testApplyTrue1() { EqualsFunction equalsFunction = new EqualsFunction(); Assert.assertTrue(equalsFunction.apply("1", new BigDecimal(1))); }
@Test public void testApplyTrue2() { EqualsFunction equalsFunction = new EqualsFunction(); Assert.assertTrue(equalsFunction.apply("forms", "forms")); }