/** * This file is licensed under the University of Illinois/NCSA Open Source License. See LICENSE.TXT for details. */ package edu.illinois.codingspectator.ui.tests.rename; import org.eclipse.jface.dialogs.IDialogConstants; import edu.illinois.codingspectator.ui.tests.RefactoringTest; /** * @author Balaji Ambresh Rajkumar * @author Mohsen Vakilian * @author nchen */ public class T05 extends RefactoringTest { @Override protected String getTestFileName() { return "RenameEnumConstantTestFile"; } @Override protected void doExecuteRefactoring() { bot.selectElementToRefactor(getTestFileFullName(), 9, 8, "RED".length()); bot.invokeRefactoringFromMenu("Rename..."); /* The second invocation of the rename refactoring brings up the dialog. */ bot.invokeRefactoringFromMenu("Rename..."); bot.fillTextField("New name:", "RENAMED_RED"); bot.clickButtons(IDialogConstants.CANCEL_LABEL); } }