/**
* This file is licensed under the University of Illinois/NCSA Open Source License. See LICENSE.TXT for details.
*/
package edu.illinois.codingspectator.ui.tests.inlinemethod;
import org.eclipse.jface.dialogs.IDialogConstants;
import edu.illinois.codingspectator.ui.tests.CodingSpectatorBot;
import edu.illinois.codingspectator.ui.tests.RefactoringTest;
/**
*
* This test invokes an inline method refactoring from the package explorer, and cancels it.
*
* @author Mohsen Vakilian
*
*/
public class T02 extends RefactoringTest {
private static final String MENU_ITEM= "Inline...";
@Override
protected String getTestFileName() {
return "InlineMethodTestFile";
}
@Override
protected void doExecuteRefactoring() {
bot.selectFromPackageExplorer(getProjectName(), "src", CodingSpectatorBot.PACKAGE_NAME, getTestFileFullName(), getTestFileName(), "m2() : void");
bot.invokeRefactoringFromMenu(MENU_ITEM);
bot.clickButtons(IDialogConstants.CANCEL_LABEL);
}
}