test++
authorDmitry Jemerov <yole@intellij.com>
Thu, 10 Sep 2009 17:54:38 +0000 (21:54 +0400)
committerDmitry Jemerov <yole@intellij.com>
Thu, 10 Sep 2009 17:54:38 +0000 (21:54 +0400)
17 files changed:
java/java-tests/testData/refactoring/makeClassStatic/IDEADEV11595.java [moved from testData/refactoring/makeClassStatic/IDEADEV11595.java with 100% similarity]
java/java-tests/testData/refactoring/makeClassStatic/IDEADEV11595_after.java [moved from testData/refactoring/makeClassStatic/IDEADEV11595_after.java with 100% similarity]
java/java-tests/testData/refactoring/makeClassStatic/IDEADEV12762.java [moved from testData/refactoring/makeClassStatic/IDEADEV12762.java with 100% similarity]
java/java-tests/testData/refactoring/makeClassStatic/IDEADEV12762_after.java [moved from testData/refactoring/makeClassStatic/IDEADEV12762_after.java with 100% similarity]
java/java-tests/testData/refactoring/makeClassStatic/IDEADEV3247.java [moved from testData/refactoring/makeClassStatic/IDEADEV3247.java with 100% similarity]
java/java-tests/testData/refactoring/makeClassStatic/IDEADEV3247_after.java [moved from testData/refactoring/makeClassStatic/IDEADEV3247_after.java with 100% similarity]
java/java-tests/testData/refactoring/makeClassStatic/fieldWithPrefix.java [moved from testData/refactoring/makeClassStatic/fieldWithPrefix.java with 100% similarity]
java/java-tests/testData/refactoring/makeClassStatic/fieldWithPrefix_after.java [moved from testData/refactoring/makeClassStatic/fieldWithPrefix_after.java with 100% similarity]
java/java-tests/testData/refactoring/makeClassStatic/qualifiedThisInSibling.java [moved from testData/refactoring/makeClassStatic/qualifiedThisInSibling.java with 100% similarity]
java/java-tests/testData/refactoring/makeClassStatic/qualifiedThisInSibling_after.java [moved from testData/refactoring/makeClassStatic/qualifiedThisInSibling_after.java with 100% similarity]
java/java-tests/testData/refactoring/makeClassStatic/regularReference.java [moved from testData/refactoring/makeClassStatic/regularReference.java with 100% similarity]
java/java-tests/testData/refactoring/makeClassStatic/regularReference_after.java [moved from testData/refactoring/makeClassStatic/regularReference_after.java with 100% similarity]
java/java-tests/testData/refactoring/makeClassStatic/simple.java [moved from testData/refactoring/makeClassStatic/simple.java with 100% similarity]
java/java-tests/testData/refactoring/makeClassStatic/simpleWithFields.java [moved from testData/refactoring/makeClassStatic/simpleWithFields.java with 100% similarity]
java/java-tests/testData/refactoring/makeClassStatic/simpleWithFields_after.java [moved from testData/refactoring/makeClassStatic/simpleWithFields_after.java with 100% similarity]
java/java-tests/testData/refactoring/makeClassStatic/simple_after.java [moved from testData/refactoring/makeClassStatic/simple_after.java with 100% similarity]
java/java-tests/testSrc/com/intellij/refactoring/MakeClassStaticTest.java [moved from refactoring/tests/com/intellij/refactoring/MakeClassStaticTest.java with 90% similarity]

similarity index 90%
rename from refactoring/tests/com/intellij/refactoring/MakeClassStaticTest.java
rename to java/java-tests/testSrc/com/intellij/refactoring/MakeClassStaticTest.java
index a22b1695ca5690c7eeef4655ce94053aa53cdb71..beb91f535493af10f38107a728893a62d7c04543 100644 (file)
@@ -3,7 +3,6 @@
  */
 package com.intellij.refactoring;
 
-import com.intellij.codeInsight.CodeInsightTestCase;
 import com.intellij.codeInsight.TargetElementUtilBase;
 import com.intellij.psi.PsiClass;
 import com.intellij.psi.PsiElement;
@@ -13,12 +12,19 @@ import com.intellij.refactoring.makeStatic.MakeClassStaticProcessor;
 import com.intellij.refactoring.makeStatic.MakeStaticUtil;
 import com.intellij.refactoring.makeStatic.Settings;
 import com.intellij.refactoring.util.ParameterTablePanel;
+import com.intellij.testFramework.LightCodeInsightTestCase;
+import com.intellij.JavaTestUtil;
 
 import java.util.ArrayList;
 
-public class MakeClassStaticTest extends CodeInsightTestCase {
+public class MakeClassStaticTest extends LightCodeInsightTestCase {
   private static final String TEST_ROOT = "/refactoring/makeClassStatic/";
 
+  @Override
+  protected String getTestDataPath() {
+    return JavaTestUtil.getJavaTestDataPath();
+  }
+
   public void testSimple() throws Exception { perform(); }
 
   public void testSimpleWithFields() throws Exception { performWithFields(); }
@@ -56,7 +62,7 @@ public class MakeClassStaticTest extends CodeInsightTestCase {
     boolean addClassParameter = MakeStaticUtil.isParameterNeeded(aClass);
 
     new MakeClassStaticProcessor(
-            myProject,
+            getProject(),
             aClass,
             new Settings(true, addClassParameter ? "anObject" : null, null)).run();
     checkResultByFile(TEST_ROOT + getTestName(true) + "_after.java");
@@ -71,7 +77,7 @@ public class MakeClassStaticTest extends CodeInsightTestCase {
     final boolean addClassParameter = MakeStaticUtil.buildVariableData(aClass, parametersForFields);
 
     new MakeClassStaticProcessor(
-            myProject,
+            getProject(),
             aClass,
             new Settings(true, addClassParameter ? "anObject" : null,
                          parametersForFields.toArray(