blob: fe9e8d9eba17d50a850502dc4daa97b87fbe27f1 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.ui.tests.refactoring;
import junit.framework.Test;
public class ExtractMethodTests17 extends ExtractMethodTests {
private static ExtractMethodTestSetup17 fgTestSetup;
public ExtractMethodTests17(String name) {
super(name);
}
public static Test suite() {
fgTestSetup= new ExtractMethodTestSetup17(new NoSuperTestsSuite(ExtractMethodTests17.class));
return fgTestSetup;
}
public static Test setUpTest(Test test) {
fgTestSetup= new ExtractMethodTestSetup17(test);
return fgTestSetup;
}
protected void try17Test() throws Exception {
performTest(fgTestSetup.getTry17Package(), "A", COMPARE_WITH_OUTPUT, "try17_out");
}
protected void invalidSelectionTest() throws Exception {
performTest(fgTestSetup.getInvalidSelectionPackage(), "A", INVALID_SELECTION, null);
}
//====================================================================================
// Testing Extracted result
//====================================================================================
//---- Test Try / catch block
public void test1() throws Exception {
try17Test();
}
public void test2() throws Exception {
try17Test();
}
public void test3() throws Exception {
try17Test();
}
public void test4() throws Exception {
try17Test();
}
public void test5() throws Exception {
try17Test();
}
public void test6() throws Exception {
try17Test();
}
public void test7() throws Exception {
try17Test();
}
//=====================================================================================
// Testing invalid selections
//=====================================================================================
public void test010() throws Exception {
invalidSelectionTest();
}
}