Program: 50462
Project: 50462
Buggy source:
@Test public void testEqual(){
  Object value=new QueryTest.Employee("String_Node_Str",34,true,10D);
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",new QueryTest.Employee("String_Node_Str",34,true,10D))));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",new QueryTest.Employee("String_Node_Str",34,true,10D))));
  assertFalse(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",new QueryTest.Employee("String_Node_Str",34,true,10D))));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",new QueryTest.Employee("String_Node_Str",34,true,10D))));
  assertTrue(Predicates.equal(new DummyExpression("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.equal(new DummyExpression("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.equal(new DummyExpression("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.equal(new DummyExpression(true),Boolean.TRUE).apply(null));
  assertTrue(Predicates.equal(new DummyExpression(Boolean.TRUE),true).apply(null));
  assertFalse(Predicates.equal(new DummyExpression(Boolean.FALSE),true).apply(null));
  assertFalse(Predicates.equal(new DummyExpression(15.23),15.22).apply(null));
  assertFalse(Predicates.equal(new DummyExpression(15.23),15.22).apply(null));
  assertTrue(Predicates.equal(new DummyExpression(15.22),15.22).apply(null));
  assertFalse(Predicates.equal(new DummyExpression(15),16).apply(null));
  assertTrue(Predicates.greaterThan(new DummyExpression(6),5).apply(null));
  assertFalse(Predicates.greaterThan(new DummyExpression(4),5).apply(null));
  assertFalse(Predicates.greaterThan(new DummyExpression(5),5).apply(null));
  assertTrue(Predicates.greaterEqual(new DummyExpression(5),5).apply(null));
  assertTrue(Predicates.lessThan(new DummyExpression(6),7).apply(null));
  assertFalse(Predicates.lessThan(new DummyExpression(4),3).apply(null));
  assertFalse(Predicates.lessThan(new DummyExpression(4),4).apply(null));
  assertTrue(Predicates.lessEqual(new DummyExpression(4),4).apply(null));
  assertTrue(Predicates.between(new DummyExpression(5),4,6).apply(null));
  assertTrue(Predicates.between(new DummyExpression(5),5,6).apply(null));
  assertFalse(Predicates.between(new DummyExpression(5),6,7).apply(null));
  assertTrue(Predicates.in(new DummyExpression(5),4,7,8,5).apply(null));
  assertTrue(Predicates.in(new DummyExpression(5),5,7,8).apply(null));
  assertFalse(Predicates.in(new DummyExpression(5),6,7,8).apply(null));
  assertFalse(Predicates.in(new DummyExpression(9),6,7,8).apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
}

Fixed version (ground truth):
@Test public void testEqual(){
  Object value=new QueryTest.Employee("String_Node_Str",34,true,10D);
  assertTrue(new SqlPredicate("String_Node_Str" + 20 + "String_Node_Str"+ 40+ "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str" + 20 + "String_Node_Str"+ 34+ "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str" + 34 + "String_Node_Str"+ 35+ "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertFalse(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",new QueryTest.Employee("String_Node_Str",34,true,10D))));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",new QueryTest.Employee("String_Node_Str",34,true,10D))));
  assertFalse(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",new QueryTest.Employee("String_Node_Str",34,true,10D))));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",new QueryTest.Employee("String_Node_Str",34,true,10D))));
  assertTrue(Predicates.equal(new DummyExpression("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.equal(new DummyExpression("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.equal(new DummyExpression("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.equal(new DummyExpression(true),Boolean.TRUE).apply(null));
  assertTrue(Predicates.equal(new DummyExpression(Boolean.TRUE),true).apply(null));
  assertFalse(Predicates.equal(new DummyExpression(Boolean.FALSE),true).apply(null));
  assertFalse(Predicates.equal(new DummyExpression(15.23),15.22).apply(null));
  assertFalse(Predicates.equal(new DummyExpression(15.23),15.22).apply(null));
  assertTrue(Predicates.equal(new DummyExpression(15.22),15.22).apply(null));
  assertFalse(Predicates.equal(new DummyExpression(15),16).apply(null));
  assertTrue(Predicates.greaterThan(new DummyExpression(6),5).apply(null));
  assertFalse(Predicates.greaterThan(new DummyExpression(4),5).apply(null));
  assertFalse(Predicates.greaterThan(new DummyExpression(5),5).apply(null));
  assertTrue(Predicates.greaterEqual(new DummyExpression(5),5).apply(null));
  assertTrue(Predicates.lessThan(new DummyExpression(6),7).apply(null));
  assertFalse(Predicates.lessThan(new DummyExpression(4),3).apply(null));
  assertFalse(Predicates.lessThan(new DummyExpression(4),4).apply(null));
  assertTrue(Predicates.lessEqual(new DummyExpression(4),4).apply(null));
  assertTrue(Predicates.between(new DummyExpression(5),4,6).apply(null));
  assertTrue(Predicates.between(new DummyExpression(5),5,6).apply(null));
  assertFalse(Predicates.between(new DummyExpression(5),6,7).apply(null));
  assertTrue(Predicates.in(new DummyExpression(5),4,7,8,5).apply(null));
  assertTrue(Predicates.in(new DummyExpression(5),5,7,8).apply(null));
  assertFalse(Predicates.in(new DummyExpression(5),6,7,8).apply(null));
  assertFalse(Predicates.in(new DummyExpression(9),6,7,8).apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertTrue(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
  assertFalse(Predicates.like(new DummyExpression<String>("String_Node_Str"),"String_Node_Str").apply(null));
}