Program: 50068
Project: 50068
Buggy source:
public void testPerformRenameMethodRefactoring() throws Exception {
  if (GrailsVersion.getDefault().compareTo(GrailsVersion.V_2_0_0) >= 0) {
    importZippedProject("String_Node_Str");
    checkImportedProject();
    createResource(project,"String_Node_Str","String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
    String oldActionName="String_Node_Str";
    String newActionName="String_Node_Str";
    IType controller=getType("String_Node_Str");
    IMethod target=getMethod(controller,"String_Node_Str");
    assertTrue("String_Node_Str",target.exists());
    RenameMethodProcessor processor=new RenameVirtualMethodProcessor(target);
    processor.setNewElementName(newActionName);
    RenameRefactoring refactoring=new RenameRefactoring(processor);
    RefactoringStatus status=performRefactoring(refactoring,true,false);
    assertOK(status);
    assertFileDeleted("String_Node_Str" + oldActionName + "String_Node_Str");
    assertFile("String_Node_Str" + newActionName + "String_Node_Str");
    assertFile("String_Node_Str","String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
    String songControllerPath="String_Node_Str";
    String songController=getContents(ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(songControllerPath)));
    songController=songController.replace('"' + oldActionName + '"','"' + newActionName + '"');
    songController=songController.replace("String_Node_Str" + oldActionName,"String_Node_Str" + newActionName);
    assertFile(songControllerPath,songController);
  }
}

Fixed version (ground truth):
public void testPerformRenameMethodRefactoring() throws Exception {
  if (GrailsVersion.getDefault().compareTo(GrailsVersion.V_2_0_0) >= 0) {
    importZippedProject("String_Node_Str");
    checkImportedProject();
    createResource(project,"String_Node_Str","String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
    StsTestUtil.assertNoErrors(project);
    String oldActionName="String_Node_Str";
    String newActionName="String_Node_Str";
    IType controller=getType("String_Node_Str");
    IMethod target=getMethod(controller,"String_Node_Str");
    assertTrue("String_Node_Str",target.exists());
    RenameMethodProcessor processor=new RenameVirtualMethodProcessor(target);
    processor.setNewElementName(newActionName);
    RenameRefactoring refactoring=new RenameRefactoring(processor);
    RefactoringStatus status=performRefactoring(refactoring,true,false);
    assertOK(status);
    assertFileDeleted("String_Node_Str" + oldActionName + "String_Node_Str");
    assertFile("String_Node_Str" + newActionName + "String_Node_Str");
    assertFile("String_Node_Str","String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
    String songControllerPath="String_Node_Str";
    String songController=getContents(ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(songControllerPath)));
    songController=songController.replace('"' + oldActionName + '"','"' + newActionName + '"');
    songController=songController.replace("String_Node_Str" + oldActionName,"String_Node_Str" + newActionName);
    assertFile(songControllerPath,songController);
  }
}