Program: 48708
Project: 48708
Buggy source:
@Test public void testEqual(){
  Employee value=new Employee("String_Node_Str",34,true,10D);
  value.setState(State.STATE2);
  Employee nullNameValue=new Employee(null,34,true,10D);
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str" + State.STATE2).apply(createEntry("String_Node_Str",value)));
  assertFalse(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertFalse(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",nullNameValue)));
  assertTrue(new SqlPredicate("String_Node_Str" + new SimpleDateFormat(dateFormat).format(new Date(0)) + "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str" + new java.sql.Date(0) + "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str" + new Timestamp(0) + "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str" + new BigDecimal("String_Node_Str") + "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str" + new BigDecimal("String_Node_Str") + "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertFalse(new SqlPredicate("String_Node_Str" + new BigDecimal("String_Node_Str") + "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)));
  assertFalse(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",nullNameValue)));
  assertFalse(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",nullNameValue)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",nullNameValue)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",nullNameValue)));
  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" + 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)));
  assertTrue(new SqlPredicate("String_Node_Str" + 34 + "String_Node_Str"+ 35+ "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str" + 40 + "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str" + 40 + "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",new Employee("String_Node_Str",-33,true,10D))));
  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)));
  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",new Employee("String_Node_Str",34,true,10D))));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",new Employee("String_Node_Str",34,true,10D))));
  assertFalse(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",new Employee("String_Node_Str",34,true,10D))));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",new Employee("String_Node_Str",34,true,10D))));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertFalse(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(Predicates.equal(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.equal(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.equal(null,TRUE).apply(new DummyEntry(true)));
  assertTrue(Predicates.equal(null,true).apply(new DummyEntry(TRUE)));
  assertFalse(Predicates.equal(null,true).apply(new DummyEntry(FALSE)));
  assertTrue(Predicates.greaterThan(null,new BigDecimal("String_Node_Str")).apply(new DummyEntry(new BigDecimal("String_Node_Str"))));
  assertFalse(Predicates.equal(null,new BigDecimal("String_Node_Str")).apply(new DummyEntry(new BigDecimal("String_Node_Str"))));
  assertTrue(Predicates.equal(null,new BigDecimal("String_Node_Str")).apply(new DummyEntry(new BigDecimal("String_Node_Str"))));
  assertFalse(Predicates.equal(null,15.22).apply(new DummyEntry(15.23)));
  assertTrue(Predicates.equal(null,15.22).apply(new DummyEntry(15.22)));
  assertFalse(Predicates.equal(null,16).apply(new DummyEntry(15)));
  assertTrue(Predicates.greaterThan(null,5).apply(new DummyEntry(6)));
  assertFalse(Predicates.greaterThan(null,5).apply(new DummyEntry(4)));
  assertFalse(Predicates.greaterThan(null,5).apply(new DummyEntry(5)));
  assertTrue(Predicates.greaterThan(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.greaterThan(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.greaterEqual(null,5).apply(new DummyEntry(5)));
  assertTrue(Predicates.lessThan(null,7).apply(new DummyEntry(6)));
  assertFalse(Predicates.lessThan(null,3).apply(new DummyEntry(4)));
  assertFalse(Predicates.lessThan(null,4).apply(new DummyEntry(4)));
  assertTrue(Predicates.lessThan(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.lessThan(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.lessEqual(null,4).apply(new DummyEntry(4)));
  assertTrue(Predicates.between(null,4,6).apply(new DummyEntry(5)));
  assertTrue(Predicates.between(null,5,6).apply(new DummyEntry(5)));
  assertTrue(Predicates.between(null,"String_Node_Str","String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.between(null,"String_Node_Str","String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.between(null,6,7).apply(new DummyEntry(5)));
  assertTrue(Predicates.in(null,4,7,8,5).apply(new DummyEntry(5)));
  assertTrue(Predicates.in(null,5,7,8).apply(new DummyEntry(5)));
  assertFalse(Predicates.in(null,6,7,8).apply(new DummyEntry(5)));
  assertFalse(Predicates.in(null,6,7,8).apply(new DummyEntry(9)));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
}

Fixed version (ground truth):
@Test public void testEqual(){
  Employee value=new Employee("String_Node_Str",34,true,10D);
  value.setState(State.STATE2);
  Employee nullNameValue=new Employee(null,34,true,10D);
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str" + State.STATE2).apply(createEntry("String_Node_Str",value)));
  assertFalse(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertFalse(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",nullNameValue)));
  assertTrue(new SqlPredicate("String_Node_Str" + new SimpleDateFormat(DateHelperTest.DATE_FORMAT,Locale.US).format(new Date(0)) + "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str" + new java.sql.Date(0) + "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str" + new Timestamp(0) + "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str" + new BigDecimal("String_Node_Str") + "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str" + new BigDecimal("String_Node_Str") + "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertFalse(new SqlPredicate("String_Node_Str" + new BigDecimal("String_Node_Str") + "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)));
  assertFalse(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",nullNameValue)));
  assertFalse(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",nullNameValue)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",nullNameValue)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",nullNameValue)));
  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" + 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)));
  assertTrue(new SqlPredicate("String_Node_Str" + 34 + "String_Node_Str"+ 35+ "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str" + 40 + "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str" + 40 + "String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",new Employee("String_Node_Str",-33,true,10D))));
  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)));
  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",new Employee("String_Node_Str",34,true,10D))));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",new Employee("String_Node_Str",34,true,10D))));
  assertFalse(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",new Employee("String_Node_Str",34,true,10D))));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",new Employee("String_Node_Str",34,true,10D))));
  assertTrue(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertFalse(new SqlPredicate("String_Node_Str").apply(createEntry("String_Node_Str",value)));
  assertTrue(Predicates.equal(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.equal(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.equal(null,TRUE).apply(new DummyEntry(true)));
  assertTrue(Predicates.equal(null,true).apply(new DummyEntry(TRUE)));
  assertFalse(Predicates.equal(null,true).apply(new DummyEntry(FALSE)));
  assertTrue(Predicates.greaterThan(null,new BigDecimal("String_Node_Str")).apply(new DummyEntry(new BigDecimal("String_Node_Str"))));
  assertFalse(Predicates.equal(null,new BigDecimal("String_Node_Str")).apply(new DummyEntry(new BigDecimal("String_Node_Str"))));
  assertTrue(Predicates.equal(null,new BigDecimal("String_Node_Str")).apply(new DummyEntry(new BigDecimal("String_Node_Str"))));
  assertFalse(Predicates.equal(null,15.22).apply(new DummyEntry(15.23)));
  assertTrue(Predicates.equal(null,15.22).apply(new DummyEntry(15.22)));
  assertFalse(Predicates.equal(null,16).apply(new DummyEntry(15)));
  assertTrue(Predicates.greaterThan(null,5).apply(new DummyEntry(6)));
  assertFalse(Predicates.greaterThan(null,5).apply(new DummyEntry(4)));
  assertFalse(Predicates.greaterThan(null,5).apply(new DummyEntry(5)));
  assertTrue(Predicates.greaterThan(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.greaterThan(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.greaterEqual(null,5).apply(new DummyEntry(5)));
  assertTrue(Predicates.lessThan(null,7).apply(new DummyEntry(6)));
  assertFalse(Predicates.lessThan(null,3).apply(new DummyEntry(4)));
  assertFalse(Predicates.lessThan(null,4).apply(new DummyEntry(4)));
  assertTrue(Predicates.lessThan(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.lessThan(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.lessEqual(null,4).apply(new DummyEntry(4)));
  assertTrue(Predicates.between(null,4,6).apply(new DummyEntry(5)));
  assertTrue(Predicates.between(null,5,6).apply(new DummyEntry(5)));
  assertTrue(Predicates.between(null,"String_Node_Str","String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.between(null,"String_Node_Str","String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.between(null,6,7).apply(new DummyEntry(5)));
  assertTrue(Predicates.in(null,4,7,8,5).apply(new DummyEntry(5)));
  assertTrue(Predicates.in(null,5,7,8).apply(new DummyEntry(5)));
  assertFalse(Predicates.in(null,6,7,8).apply(new DummyEntry(5)));
  assertFalse(Predicates.in(null,6,7,8).apply(new DummyEntry(9)));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertTrue(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
  assertFalse(Predicates.like(null,"String_Node_Str").apply(new DummyEntry("String_Node_Str")));
}