blob: 074c480ec37de37e949d7c519fb8e0595f177ae8 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011, 2020 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.ui.tests.refactoring;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.eclipse.jdt.ui.tests.CustomBaseRunner;
import org.eclipse.jdt.ui.tests.IgnoreInheritedTests;
import org.eclipse.jdt.ui.tests.refactoring.rules.Java17Setup;
import org.eclipse.jdt.ui.tests.refactoring.rules.RefactoringTestSetup;
@IgnoreInheritedTests
@RunWith(CustomBaseRunner.class)
public class IntroduceIndirectionTests17 extends IntroduceIndirectionTests {
@Rule
public RefactoringTestSetup rts= new Java17Setup();
// ---
@Test
public void test17_32() throws Exception {
// test for bug 349405
helperPass(new String[] { "p.Foo" }, "foo", "p.Foo", 10, 17, 10, 20);
}
@Test
public void test17_33() throws Exception {
// test for bug 349405
helperPass(new String[] { "p.Foo" }, "getX", "p.Foo", 14, 17, 14, 21);
}
@Test
public void test17_34() throws Exception {
// test for bug
helperFail(new String[] { "p.Foo" }, "m2", "p.Foo", 7, 18, 7, 18);
}
}