Program: 63547
Project: 63547
Buggy source:
public void addUOWConformObjectTests(){
  PopulationManager manager=PopulationManager.getDefaultManager();
  Employee example=(Employee)manager.getObject(Employee.class,"String_Node_Str");
  ExpressionBuilder builder=new ExpressionBuilder();
  ReadObjectQuery query=new ReadObjectQuery(Employee.class,builder.get("String_Node_Str").greaterThan(example.getId().subtract(new BigDecimal(1))).and(builder.get("String_Node_Str").lessThanEqual(example.getId())));
  query.conformResultsInUnitOfWork();
  UnitOfWorkConformObjectTest test=new UnitOfWorkConformObjectTest(query,true);
  test.setName("String_Node_Str");
  addTest(test);
  builder=new ExpressionBuilder();
  query=new ReadObjectQuery(Employee.class,builder.get("String_Node_Str").equal("String_Node_Str").or(builder.get("String_Node_Str").equal("String_Node_Str")));
  query.conformResultsInUnitOfWork();
  test=new UnitOfWorkConformObjectTest(query,true);
  test.setName("String_Node_Str");
  addTest(test);
  builder=new ExpressionBuilder();
  query=new ReadObjectQuery(Employee.class,builder.get("String_Node_Str").equal("String_Node_Str").and(builder.get("String_Node_Str").equal(null)));
  query.conformResultsInUnitOfWork();
  test=new UnitOfWorkConformObjectTest(query,false);
  test.setName("String_Node_Str");
  addTest(test);
  builder=new ExpressionBuilder();
  query=new ReadObjectQuery(Employee.class,builder.get("String_Node_Str").equal("String_Node_Str").and(builder.get("String_Node_Str").equal(null)));
  query.conformResultsInUnitOfWork();
  test=new UnitOfWorkConformObjectTest(query,true);
  test.setName("String_Node_Str");
  addTest(test);
  builder=new ExpressionBuilder();
  query=new ReadObjectQuery(Employee.class,builder.get("String_Node_Str").equal("String_Node_Str"));
  query.conformResultsInUnitOfWork();
  test=new UnitOfWorkConformObjectTest(query,true);
  test.setName("String_Node_Str");
  addTest(test);
  builder=new ExpressionBuilder();
  query=new ReadObjectQuery(Employee.class,builder.get("String_Node_Str").equal("String_Node_Str"));
  query.conformResultsInUnitOfWork();
  test=new UnitOfWorkConformObjectTest(query,false);
  test.setName("String_Node_Str");
  addTest(test);
  addTest(new UnitOfWorkConformLikeTest());
  addTest(new UnitOfWorkConformLikeSpecialCharacterTest());
  addTest(new NamedQueryConformNullPointerException());
  addTest(new MemoryQueryAcrossOneToOneMapping());
  addTest(new MemoryQueryAcrossNestedOneToManyMapping());
  addTest(new MemoryQueryAcrossOneToManyMapping());
  addTest(new MemoryQueryForFunctionsAcrossOneToManyMapping());
  addTest(new MemoryQueryForFunctionsAcrossOneToManyAcrossOneToOneMapping());
  addTest(new MemoryQueryAcrossOneToManyMapping2());
  addTest(new MemoryQueryAcrossOneToManyAcrossOneToOneMapping());
  addTest(new MemoryQueryAcrossManyToManyMapping());
  addTest(new MemoryQueryAcrossManyToManyAcrossOneToManyMapping());
  addTest(new MemoryQueryAcrossDirectCollectionMapping());
  addTest(new MemoryQueryAcrossAggregateCollectionMapping(Agent.class));
  addTest(new MemoryQueryAcrossAggregateCollectionMapping(Builder.class));
  addTest(new NamedQueryConformNullPointerException());
  addTest(new MemoryQueryTriggerIndirection());
  addTest(new MemoryQueryReturnConformedOnIndirection());
  addTest(new MemoryQueryReturnNotConformedOnIndirection());
  addTest(new MemoryQueryThrowExceptionOnIndirection());
  builder=new ExpressionBuilder();
  query=new ReadObjectQuery(Employee.class,builder.get("String_Node_Str").equal(null));
  DescriptorUnitOfWorkConformObjectTest test2=new DescriptorUnitOfWorkConformObjectTest(query,true);
  test2.setName("String_Node_Str");
  addTest(test2);
  builder=new ExpressionBuilder();
  query=new ReadObjectQuery(Employee.class,builder.get("String_Node_Str").equal("String_Node_Str"));
  test2=new DescriptorUnitOfWorkConformObjectTest(query,false);
  test2.setName("String_Node_Str");
  addTest(test2);
  addTest(new MemoryQueryLike());
}

Fixed version (ground truth):
public void addUOWConformObjectTests(){
  PopulationManager manager=PopulationManager.getDefaultManager();
  Employee example=(Employee)manager.getObject(Employee.class,"String_Node_Str");
  ExpressionBuilder builder=new ExpressionBuilder();
  ReadObjectQuery query=new ReadObjectQuery(Employee.class,builder.get("String_Node_Str").greaterThan(example.getId().subtract(new BigDecimal(1))).and(builder.get("String_Node_Str").lessThanEqual(example.getId())));
  query.conformResultsInUnitOfWork();
  UnitOfWorkConformObjectTest test=new UnitOfWorkConformObjectTest(query,true);
  test.setName("String_Node_Str");
  addTest(test);
  builder=new ExpressionBuilder();
  query=new ReadObjectQuery(Employee.class,builder.get("String_Node_Str").equal("String_Node_Str").or(builder.get("String_Node_Str").equal("String_Node_Str")));
  query.conformResultsInUnitOfWork();
  test=new UnitOfWorkConformObjectTest(query,true);
  test.setName("String_Node_Str");
  addTest(test);
  builder=new ExpressionBuilder();
  query=new ReadObjectQuery(Employee.class,builder.get("String_Node_Str").equal("String_Node_Str").and(builder.get("String_Node_Str").equal(null)));
  query.conformResultsInUnitOfWork();
  test=new UnitOfWorkConformObjectTest(query,false);
  test.setName("String_Node_Str");
  addTest(test);
  builder=new ExpressionBuilder();
  query=new ReadObjectQuery(Employee.class,builder.get("String_Node_Str").equal("String_Node_Str").and(builder.get("String_Node_Str").equal(null)));
  query.conformResultsInUnitOfWork();
  test=new UnitOfWorkConformObjectTest(query,true);
  test.setName("String_Node_Str");
  addTest(test);
  builder=new ExpressionBuilder();
  query=new ReadObjectQuery(Employee.class,builder.get("String_Node_Str").equal("String_Node_Str"));
  query.conformResultsInUnitOfWork();
  test=new UnitOfWorkConformObjectTest(query,true);
  test.setName("String_Node_Str");
  addTest(test);
  builder=new ExpressionBuilder();
  query=new ReadObjectQuery(Employee.class,builder.get("String_Node_Str").equal("String_Node_Str"));
  query.conformResultsInUnitOfWork();
  test=new UnitOfWorkConformObjectTest(query,false);
  test.setName("String_Node_Str");
  addTest(test);
  addTest(new UnitOfWorkConformLikeTest());
  addTest(new UnitOfWorkConformLikeSpecialCharacterTest());
  addTest(new NamedQueryConformNullPointerException());
  addTest(new MemoryQueryAcrossOneToOneMapping());
  addTest(new MemoryQueryAcrossNestedOneToManyMapping());
  addTest(new MemoryQueryAcrossOneToManyMapping());
  addTest(new MemoryQueryForFunctionsAcrossOneToManyMapping());
  addTest(new MemoryQueryForFunctionsAcrossOneToManyAcrossOneToOneMapping());
  addTest(new MemoryQueryAcrossOneToManyMapping2());
  addTest(new MemoryQueryAcrossOneToManyAcrossOneToOneMapping());
  addTest(new MemoryQueryAcrossManyToManyMapping());
  addTest(new MemoryQueryAcrossManyToManyAcrossOneToManyMapping());
  addTest(new MemoryQueryAcrossDirectCollectionMapping());
  addTest(new MemoryQueryAcrossAggregateCollectionMapping(Agent.class));
  addTest(new MemoryQueryAcrossAggregateCollectionMapping(Builder.class));
  addTest(new NamedQueryConformNullPointerException());
  addTest(new MemoryQueryTriggerIndirection());
  addTest(new MemoryQueryReturnConformedOnIndirection());
  addTest(new MemoryQueryReturnNotConformedOnIndirection());
  addTest(new MemoryQueryThrowExceptionOnIndirection());
  builder=new ExpressionBuilder();
  query=new ReadObjectQuery(Employee.class,builder.get("String_Node_Str").equal(null));
  DescriptorUnitOfWorkConformObjectTest test2=new DescriptorUnitOfWorkConformObjectTest(query,true);
  test2.setName("String_Node_Str");
  addTest(test2);
  builder=new ExpressionBuilder();
  query=new ReadObjectQuery(Employee.class,builder.get("String_Node_Str").equal("String_Node_Str"));
  test2=new DescriptorUnitOfWorkConformObjectTest(query,false);
  test2.setName("String_Node_Str");
  addTest(test2);
  addTest(new MemoryQueryLike());
  addTest(new UnitOfWorkConformReadObjectWithCriteriaTest());
}