Program: 125412
Project: 125412
Buggy source:
/** 
 * Test method for  {@link org.talend.repository.localprovider.model.LocalRepositoryFactory#getUptodateProperty(org.talend.core.model.general.Project,org.talend.core.model.properties.Property)}.
 * @throws CoreException
 * @throws PersistenceException
 * @throws LoginException
 */
@Test public void testGetUptodateProperty() throws PersistenceException, LoginException {
  repositoryFactory.logOnProject(sampleProject);
  Property property=PropertiesFactory.eINSTANCE.createProperty();
  property.setAuthor(sampleProject.getAuthor());
  property.setVersion(VersionUtils.DEFAULT_VERSION);
  property.setLabel("String_Node_Str");
  property.setDisplayName("String_Node_Str");
  property.setStatusCode("String_Node_Str");
  final String nextId=repositoryFactory.getNextId();
  property.setId(nextId);
  ProcessItem processItem=PropertiesFactory.eINSTANCE.createProcessItem();
  processItem.setProperty(property);
  ProcessType process=TalendFileFactory.eINSTANCE.createProcessType();
  processItem.setProcess(process);
  repositoryFactory.create(sampleProject,processItem,new Path("String_Node_Str"),false);
  assertEquals(property.getDisplayName(),"String_Node_Str");
  property.setDisplayName("String_Node_Str");
  final Property uptodateProperty=repositoryFactory.getUptodateProperty(sampleProject,property);
  assertNotNull(uptodateProperty);
  assertNotNull(uptodateProperty.eResource());
  assertEquals(uptodateProperty.getDisplayName(),"String_Node_Str");
  repositoryFactory.unloadUnlockedResources();
  final Property uptodateProperty2=repositoryFactory.getUptodateProperty(sampleProject,property);
  assertNotNull(uptodateProperty2);
  assertNotNull(uptodateProperty2.eResource());
  assertEquals(uptodateProperty2.getDisplayName(),"String_Node_Str");
  repositoryFactory.deleteObjectPhysical(sampleProject,new RepositoryObject(uptodateProperty));
}

Fixed version (ground truth):
/** 
 * Test method for  {@link org.talend.repository.localprovider.model.LocalRepositoryFactory#getUptodateProperty(org.talend.core.model.general.Project,org.talend.core.model.properties.Property)}.
 * @throws CoreException
 * @throws PersistenceException
 * @throws LoginException
 */
@Test public void testGetUptodateProperty() throws PersistenceException, LoginException {
  repositoryFactory.logOnProject(sampleProject);
  Property property=PropertiesFactory.eINSTANCE.createProperty();
  property.setAuthor(sampleProject.getAuthor());
  property.setVersion(VersionUtils.DEFAULT_VERSION);
  property.setLabel("String_Node_Str");
  property.setDisplayName("String_Node_Str");
  property.setStatusCode("String_Node_Str");
  final String nextId=repositoryFactory.getNextId();
  property.setId(nextId);
  ProcessItem processItem=PropertiesFactory.eINSTANCE.createProcessItem();
  processItem.setProperty(property);
  ProcessType process=TalendFileFactory.eINSTANCE.createProcessType();
  processItem.setProcess(process);
  repositoryFactory.create(sampleProject,processItem,new Path("String_Node_Str"),false);
  assertEquals(property.getDisplayName(),"String_Node_Str");
  property.setDisplayName("String_Node_Str");
  final Property uptodateProperty=repositoryFactory.getUptodateProperty(sampleProject,property);
  assertNotNull(uptodateProperty);
  assertNotNull(uptodateProperty.eResource());
  assertEquals(uptodateProperty.getDisplayName(),"String_Node_Str");
  repositoryFactory.unloadUnlockedResources();
  final Property uptodateProperty2=repositoryFactory.getUptodateProperty(sampleProject,property);
  assertNotNull(uptodateProperty2);
  assertNotNull(uptodateProperty2.eResource());
  assertEquals(uptodateProperty2.getDisplayName(),"String_Node_Str");
  repositoryFactory.deleteObjectPhysical(sampleProject,new RepositoryObject(uptodateProperty),false);
}