mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
26 lines
872 B
Java
26 lines
872 B
Java
/*
|
|
* User: anna
|
|
* Date: 11-Jun-2009
|
|
*/
|
|
package com.intellij.refactoring;
|
|
|
|
import com.intellij.JavaTestUtil;
|
|
import com.intellij.openapi.projectRoots.Sdk;
|
|
import com.intellij.openapi.projectRoots.impl.JavaSdkImpl;
|
|
import com.intellij.testFramework.LightCodeInsightTestCase;
|
|
|
|
public class ExtractMethod15Test extends LightCodeInsightTestCase {
|
|
private static final String BASE_PATH = "/refactoring/extractMethod15/";
|
|
|
|
@Override
|
|
protected String getTestDataPath() {
|
|
return JavaTestUtil.getJavaTestDataPath();
|
|
}
|
|
|
|
public void testCodeDuplicatesWithMultOccurences() throws Exception {
|
|
configureByFile(BASE_PATH + getTestName(false) + ".java");
|
|
boolean success = ExtractMethodTest.performExtractMethod(true, true, getEditor(), getFile(), getProject());
|
|
assertTrue(success);
|
|
checkResultByFile(BASE_PATH + getTestName(false) + "_after.java");
|
|
}
|
|
} |