Program: 125405
Project: 125405
Buggy source:
/** 
 * Test method for  {@link org.talend.repository.localprovider.model.LocalRepositoryFactory#createFolder(org.talend.core.model.general.Project)}.
 * @throws CoreException
 * @throws PersistenceException
 * @throws LoginException
 */
@Test public void testMoveFolder() throws PersistenceException, CoreException, LoginException {
  repositoryFactory.logOnProject(sampleProject);
  ProcessItem processItem=createTempProcessItem(repositoryFactory,"String_Node_Str");
  String processId=processItem.getProperty().getId();
  List<IRepositoryViewObject> objects=repositoryFactory.getAllVersion(sampleProject,processId,"String_Node_Str",ERepositoryObjectType.PROCESS);
  if (objects.isEmpty()) {
    return;
  }
  final Folder createTargetFolder=repositoryFactory.createFolder(sampleProject,ERepositoryObjectType.PROCESS,new Path("String_Node_Str"),"String_Node_Str");
  assertNotNull(createTargetFolder);
  IPath sourcePath=new Path("String_Node_Str");
  IPath targetPath=new Path(createTargetFolder.getLabel());
  assertNotNull(objects.get(0));
  repositoryFactory.moveFolder(ERepositoryObjectType.PROCESS,sourcePath,targetPath);
  IProject project=ResourceUtils.getProject(sampleProject);
  checkMoveObjectFileExists(project,ERepositoryObjectType.PROCESS,createTargetFolder.getLabel() + "String_Node_Str" + "String_Node_Str",processItem.getProperty().getLabel(),processItem.getProperty().getVersion());
  Property property=repositoryFactory.getUptodateProperty(sampleProject,processItem.getProperty());
  repositoryFactory.deleteObjectPhysical(sampleProject,new RepositoryObject(property));
}

Fixed version (ground truth):
/** 
 * Test method for  {@link org.talend.repository.localprovider.model.LocalRepositoryFactory#createFolder(org.talend.core.model.general.Project)}.
 * @throws CoreException
 * @throws PersistenceException
 * @throws LoginException
 */
@Test public void testMoveFolder() throws PersistenceException, CoreException, LoginException {
  repositoryFactory.logOnProject(sampleProject);
  ProcessItem processItem=createTempProcessItem(repositoryFactory,"String_Node_Str");
  String processId=processItem.getProperty().getId();
  List<IRepositoryViewObject> objects=repositoryFactory.getAllVersion(sampleProject,processId,"String_Node_Str",ERepositoryObjectType.PROCESS);
  if (objects.isEmpty()) {
    return;
  }
  final Folder createTargetFolder=repositoryFactory.createFolder(sampleProject,ERepositoryObjectType.PROCESS,new Path("String_Node_Str"),"String_Node_Str");
  assertNotNull(createTargetFolder);
  IPath sourcePath=new Path("String_Node_Str");
  IPath targetPath=new Path(createTargetFolder.getLabel());
  assertNotNull(objects.get(0));
  repositoryFactory.moveFolder(ERepositoryObjectType.PROCESS,sourcePath,targetPath);
  IProject project=ResourceUtils.getProject(sampleProject);
  checkMoveObjectFileExists(project,ERepositoryObjectType.PROCESS,createTargetFolder.getLabel() + "String_Node_Str" + "String_Node_Str",processItem.getProperty().getLabel(),processItem.getProperty().getVersion());
  Property property=repositoryFactory.getUptodateProperty(sampleProject,processItem.getProperty());
  repositoryFactory.deleteObjectPhysical(sampleProject,new RepositoryObject(property),false);
}