Program: 65323
Project: 65323
Buggy source:
public void addPartialTests(){
  ReadAllPartialReadingTest test3=new ReadAllPartialReadingTest(12,"String_Node_Str");
  test3.setName("String_Node_Str");
  ReadAllQuery query3=new ReadAllQuery();
  query3.setReferenceClass(Employee.class);
  query3.dontMaintainCache();
  query3.addPartialAttribute("String_Node_Str");
  query3.addPartialAttribute("String_Node_Str");
  test3.setQuery(query3);
  addTest(test3);
  ReadAllPartialReadingTest test4=new ReadAllPartialReadingTest(1,"String_Node_Str");
  test4.setName("String_Node_Str");
  ReadAllQuery query4=new ReadAllQuery();
  query4.setReferenceClass(Employee.class);
  query4.dontMaintainCache();
  query4.addPartialAttribute("String_Node_Str");
  query4.addPartialAttribute("String_Node_Str");
  query4.setSelectionCriteria(new org.eclipse.persistence.expressions.ExpressionBuilder().get("String_Node_Str").get("String_Node_Str").equal("String_Node_Str"));
  test4.setQuery(query4);
  addTest(test4);
  ReadAllPartialReadingTest test5=new ReadAllPartialReadingTest(12,"String_Node_Str");
  test5.setName("String_Node_Str");
  ReadAllQuery query5=new ReadAllQuery();
  query5.setReferenceClass(Employee.class);
  query5.dontMaintainCache();
  query5.addPartialAttribute(query5.getExpressionBuilder().get("String_Node_Str").get("String_Node_Str"));
  query5.addPartialAttribute("String_Node_Str");
  test5.setQuery(query5);
  addTest(test5);
  ReadAllPartialReadingTest test6=new ReadAllPartialReadingTest(12,"String_Node_Str");
  test6.setName("String_Node_Str");
  ReadAllQuery query6=new ReadAllQuery();
  query6.useCursoredStream();
  query6.setReferenceClass(Employee.class);
  query6.dontMaintainCache();
  query6.addPartialAttribute(query6.getExpressionBuilder().get("String_Node_Str").get("String_Node_Str"));
  query6.addPartialAttribute("String_Node_Str");
  test6.setQuery(query6);
  addTest(test6);
  ReadAllPartialReadingTest test1m=new ReadAllPartialReadingTest(12,"String_Node_Str");
  test1m.setName("String_Node_Str");
  ReadAllQuery query1m=new ReadAllQuery();
  query1m.setReferenceClass(Employee.class);
  query1m.dontMaintainCache();
  Expression phones=query1m.getExpressionBuilder().anyOf("String_Node_Str");
  query1m.addPartialAttribute(phones.get("String_Node_Str"));
  query1m.addPartialAttribute(phones.get("String_Node_Str"));
  query1m.addPartialAttribute(phones.get("String_Node_Str"));
  test1m.setQuery(query1m);
  addTest(test1m);
  ReadAllTest test9=new ReadAllTest(Employee.class,12);
  test9.setName("String_Node_Str");
  ReadAllQuery query9=new ReadAllQuery();
  query9.setReferenceClass(Employee.class);
  query9.dontMaintainCache();
  query9.addPartialAttribute("String_Node_Str");
  test9.setQuery(query9);
  addTest(test9);
  ReadAllPartialReadingTest test10=new ReadAllPartialReadingTest(12,"String_Node_Str");
  test10.setName("String_Node_Str");
  ReadAllQuery query10=new ReadAllQuery();
  query10.setReferenceClass(Employee.class);
  query10.dontMaintainCache();
  query10.addPartialAttribute("String_Node_Str");
  test10.setQuery(query10);
  addTest(test10);
  ReadAllPartialReadingTest test11=new ReadAllPartialReadingTest(12,"String_Node_Str");
  test11.setName("String_Node_Str");
  ReadAllQuery query11=new ReadAllQuery();
  query11.setReferenceClass(Employee.class);
  query11.dontMaintainCache();
  query11.addPartialAttribute("String_Node_Str");
  query11.addAscendingOrdering("String_Node_Str");
  test11.setQuery(query11);
  addTest(test11);
  ReadAllPartialReadingTest test12=new ReadAllPartialReadingTest(12,"String_Node_Str");
  test12.setName("String_Node_Str");
  ReadAllQuery query12=new ReadAllQuery();
  query12.setReferenceClass(Employee.class);
  query12.dontMaintainCache();
  query12.addPartialAttribute("String_Node_Str");
  query12.addAscendingOrdering("String_Node_Str");
  test12.setQuery(query12);
  addTest(test12);
  ReadAllPartialReadingAddressTest test14=new ReadAllPartialReadingAddressTest(12,"String_Node_Str");
  test14.setName("String_Node_Str");
  ReadAllQuery query14=new ReadAllQuery();
  query14.setReferenceClass(Address.class);
  query14.dontMaintainCache();
  query14.addPartialAttribute("String_Node_Str");
  query14.addAscendingOrdering("String_Node_Str");
  query14.useDistinct();
  test14.setQuery(query14);
  addTest(test14);
  ReadAllPartialReadingAddressTest test15=new ReadAllPartialReadingAddressTest(12,"String_Node_Str");
  test15.setName("String_Node_Str");
  ReadAllQuery query15=new ReadAllQuery();
  query15.setReferenceClass(Employee.class);
  query15.dontMaintainCache();
  query15.addPartialAttribute("String_Node_Str");
  query15.addPartialAttribute(new org.eclipse.persistence.expressions.ExpressionBuilder().get("String_Node_Str").get("String_Node_Str"));
  test15.setQuery(query15);
  addTest(test15);
  addTest(new QueryValidationTest());
}

Fixed version (ground truth):
public void addPartialTests(){
  ReadAllPartialReadingTest test3=new ReadAllPartialReadingTest(12,"String_Node_Str");
  test3.setName("String_Node_Str");
  ReadAllQuery query3=new ReadAllQuery();
  query3.setReferenceClass(Employee.class);
  query3.dontMaintainCache();
  query3.addPartialAttribute("String_Node_Str");
  query3.addPartialAttribute("String_Node_Str");
  test3.setQuery(query3);
  addTest(test3);
  ReadAllPartialReadingTest test4=new ReadAllPartialReadingTest(1,"String_Node_Str");
  test4.setName("String_Node_Str");
  ReadAllQuery query4=new ReadAllQuery();
  query4.setReferenceClass(Employee.class);
  query4.dontMaintainCache();
  query4.addPartialAttribute("String_Node_Str");
  query4.addPartialAttribute("String_Node_Str");
  query4.setSelectionCriteria(new org.eclipse.persistence.expressions.ExpressionBuilder().get("String_Node_Str").get("String_Node_Str").equal("String_Node_Str"));
  test4.setQuery(query4);
  addTest(test4);
  ReadAllPartialReadingTest test5=new ReadAllPartialReadingTest(12,"String_Node_Str");
  test5.setName("String_Node_Str");
  ReadAllQuery query5=new ReadAllQuery();
  query5.setReferenceClass(Employee.class);
  query5.dontMaintainCache();
  query5.addPartialAttribute(query5.getExpressionBuilder().get("String_Node_Str").get("String_Node_Str"));
  query5.addPartialAttribute("String_Node_Str");
  test5.setQuery(query5);
  addTest(test5);
  ReadAllPartialReadingTest test6=new ReadAllPartialReadingTest(12,"String_Node_Str");
  test6.setName("String_Node_Str");
  ReadAllQuery query6=new ReadAllQuery();
  query6.useCursoredStream();
  query6.setReferenceClass(Employee.class);
  query6.dontMaintainCache();
  query6.addPartialAttribute(query6.getExpressionBuilder().get("String_Node_Str").get("String_Node_Str"));
  query6.addPartialAttribute("String_Node_Str");
  test6.setQuery(query6);
  addTest(test6);
  ReadAllPartialReadingTest test1m=new ReadAllPartialReadingTest(12,"String_Node_Str");
  test1m.setName("String_Node_Str");
  ReadAllQuery query1m=new ReadAllQuery();
  query1m.setReferenceClass(Employee.class);
  query1m.dontMaintainCache();
  Expression phones=query1m.getExpressionBuilder().anyOf("String_Node_Str");
  query1m.addPartialAttribute(phones.get("String_Node_Str"));
  query1m.addPartialAttribute(phones.get("String_Node_Str"));
  query1m.addPartialAttribute(phones.get("String_Node_Str"));
  test1m.setQuery(query1m);
  addTest(test1m);
  ReadAllTest test9=new ReadAllTest(Employee.class,12);
  test9.setName("String_Node_Str");
  ReadAllQuery query9=new ReadAllQuery();
  query9.setReferenceClass(Employee.class);
  query9.dontMaintainCache();
  query9.addPartialAttribute("String_Node_Str");
  test9.setQuery(query9);
  addTest(test9);
  ReadAllPartialReadingTest test10=new ReadAllPartialReadingTest(12,"String_Node_Str");
  test10.setName("String_Node_Str");
  ReadAllQuery query10=new ReadAllQuery();
  query10.setReferenceClass(Employee.class);
  query10.dontMaintainCache();
  query10.addPartialAttribute("String_Node_Str");
  test10.setQuery(query10);
  addTest(test10);
  ReadAllPartialReadingTest test11=new ReadAllPartialReadingTest(12,"String_Node_Str");
  test11.setName("String_Node_Str");
  ReadAllQuery query11=new ReadAllQuery();
  query11.setReferenceClass(Employee.class);
  query11.dontMaintainCache();
  query11.addPartialAttribute("String_Node_Str");
  query11.addAscendingOrdering("String_Node_Str");
  test11.setQuery(query11);
  addTest(test11);
  ReadAllPartialReadingTest test12=new ReadAllPartialReadingTest(12,"String_Node_Str");
  test12.setName("String_Node_Str");
  ReadAllQuery query12=new ReadAllQuery();
  query12.setReferenceClass(Employee.class);
  query12.dontMaintainCache();
  query12.addPartialAttribute("String_Node_Str");
  query12.addAscendingOrdering("String_Node_Str");
  test12.setQuery(query12);
  addTest(test12);
  ReadAllPartialReadingAddressTest test14=new ReadAllPartialReadingAddressTest(12,"String_Node_Str");
  test14.setName("String_Node_Str");
  ReadAllQuery query14=new ReadAllQuery();
  query14.setReferenceClass(Address.class);
  query14.dontMaintainCache();
  query14.addPartialAttribute("String_Node_Str");
  query14.addAscendingOrdering("String_Node_Str");
  query14.useDistinct();
  test14.setQuery(query14);
  addTest(test14);
  ReadAllPartialReadingAddressTest test15=new ReadAllPartialReadingAddressTest(12,"String_Node_Str");
  test15.setName("String_Node_Str");
  ReadAllQuery query15=new ReadAllQuery();
  query15.setReferenceClass(Employee.class);
  query15.dontMaintainCache();
  query15.addPartialAttribute("String_Node_Str");
  query15.addPartialAttribute(new org.eclipse.persistence.expressions.ExpressionBuilder().get("String_Node_Str").get("String_Node_Str"));
  test15.setQuery(query15);
  addTest(test15);
  ReadAllPartialReadingAddressTest test16=new ReadAllPartialReadingAddressTest(26,"String_Node_Str");
  test16.setName("String_Node_Str");
  ReadAllQuery query16=new ReadAllQuery();
  query16.setReferenceClass(PhoneNumber.class);
  query16.dontMaintainCache();
  query16.useDistinct();
  query16.addPartialAttribute(new org.eclipse.persistence.expressions.ExpressionBuilder().get("String_Node_Str").get("String_Node_Str").get("String_Node_Str"));
  test16.setQuery(query16);
  addTest(test16);
  addTest(new QueryValidationTest());
}