Program: 125400
Project: 125400
Buggy source:
protected void testGetSerializableRoutine(LocalRepositoryFactory repositoryFactory,String path) throws PersistenceException, CoreException {
  Object fullFolder;
  List<IRepositoryViewObject> serializableFromFolder;
  IRepositoryViewObject rvo;
  RoutineItem rItem=createTempRoutineItem(repositoryFactory,path);
  String routineId=rItem.getProperty().getId();
  fullFolder=getFullFolder(repositoryFactory,sampleProject,ERepositoryObjectType.ROUTINES,"String_Node_Str");
  serializableFromFolder=repositoryFactory.getSerializableFromFolder(sampleProject,fullFolder,routineId,ERepositoryObjectType.ROUTINES,true,true,true,false);
  assertNotNull(serializableFromFolder);
  assertTrue(serializableFromFolder.size() == 1);
  rvo=serializableFromFolder.get(0);
  String content=new String(((RoutineItem)(rvo.getProperty().getItem())).getContent().getInnerContent());
  assertTrue(content.equals("String_Node_Str"));
  repositoryFactory.deleteObjectLogical(sampleProject,rvo);
  serializableFromFolder=repositoryFactory.getSerializableFromFolder(sampleProject,fullFolder,routineId,ERepositoryObjectType.ROUTINES,true,true,true,false);
  assertNotNull(serializableFromFolder);
  assertTrue(serializableFromFolder.size() == 1);
  content=new String(((RoutineItem)(serializableFromFolder.get(0).getProperty().getItem())).getContent().getInnerContent());
  assertTrue(content.equals("String_Node_Str"));
  serializableFromFolder=repositoryFactory.getSerializableFromFolder(sampleProject,fullFolder,routineId,ERepositoryObjectType.ROUTINES,true,true,false,false);
  assertNotNull(serializableFromFolder);
  assertTrue(serializableFromFolder.size() == 0);
  repositoryFactory.deleteObjectPhysical(sampleProject,rvo);
  serializableFromFolder=repositoryFactory.getSerializableFromFolder(sampleProject,fullFolder,routineId,ERepositoryObjectType.ROUTINES,true,true,true,false);
  assertNotNull(serializableFromFolder);
  assertTrue(serializableFromFolder.size() == 0);
}

Fixed version (ground truth):
protected void testGetSerializableRoutine(LocalRepositoryFactory repositoryFactory,String path) throws PersistenceException, CoreException {
  Object fullFolder;
  List<IRepositoryViewObject> serializableFromFolder;
  IRepositoryViewObject rvo;
  RoutineItem rItem=createTempRoutineItem(repositoryFactory,path);
  String routineId=rItem.getProperty().getId();
  fullFolder=getFullFolder(repositoryFactory,sampleProject,ERepositoryObjectType.ROUTINES,"String_Node_Str");
  serializableFromFolder=repositoryFactory.getSerializableFromFolder(sampleProject,fullFolder,routineId,ERepositoryObjectType.ROUTINES,true,true,true,false);
  assertNotNull(serializableFromFolder);
  assertTrue(serializableFromFolder.size() == 1);
  rvo=serializableFromFolder.get(0);
  String content=new String(((RoutineItem)(rvo.getProperty().getItem())).getContent().getInnerContent());
  assertTrue(content.equals("String_Node_Str"));
  repositoryFactory.deleteObjectLogical(sampleProject,rvo);
  serializableFromFolder=repositoryFactory.getSerializableFromFolder(sampleProject,fullFolder,routineId,ERepositoryObjectType.ROUTINES,true,true,true,false);
  assertNotNull(serializableFromFolder);
  assertTrue(serializableFromFolder.size() == 1);
  content=new String(((RoutineItem)(serializableFromFolder.get(0).getProperty().getItem())).getContent().getInnerContent());
  assertTrue(content.equals("String_Node_Str"));
  serializableFromFolder=repositoryFactory.getSerializableFromFolder(sampleProject,fullFolder,routineId,ERepositoryObjectType.ROUTINES,true,true,false,false);
  assertNotNull(serializableFromFolder);
  assertTrue(serializableFromFolder.size() == 0);
  repositoryFactory.deleteObjectPhysical(sampleProject,rvo,false);
  serializableFromFolder=repositoryFactory.getSerializableFromFolder(sampleProject,fullFolder,routineId,ERepositoryObjectType.ROUTINES,true,true,true,false);
  assertNotNull(serializableFromFolder);
  assertTrue(serializableFromFolder.size() == 0);
}