test++
authorDmitry Jemerov <yole@intellij.com>
Fri, 11 Sep 2009 12:27:36 +0000 (16:27 +0400)
committerDmitry Jemerov <yole@intellij.com>
Fri, 11 Sep 2009 12:27:36 +0000 (16:27 +0400)
21 files changed:
java/java-tests/testData/refactoring/movePackage/insidePackage/after/a/b/a/A.java [moved from testData/refactoring/movePackage/insidePackage/after/a/b/a/A.java with 100% similarity]
java/java-tests/testData/refactoring/movePackage/insidePackage/after/a/b/a/b/empty.txt [moved from testData/refactoring/movePackage/insidePackage/after/a/b/a/b/empty.txt with 100% similarity]
java/java-tests/testData/refactoring/movePackage/insidePackage/before/a/A.java [moved from testData/refactoring/movePackage/insidePackage/before/a/A.java with 100% similarity]
java/java-tests/testData/refactoring/movePackage/insidePackage/before/a/b/empty.txt [moved from testData/refactoring/movePackage/insidePackage/before/a/b/empty.txt with 100% similarity]
java/java-tests/testData/refactoring/movePackage/moveSingle/after/pack2/User1.java [moved from testData/refactoring/movePackage/moveSingle/after/pack2/User1.java with 100% similarity]
java/java-tests/testData/refactoring/movePackage/moveSingle/after/pack2/User2.java [moved from testData/refactoring/movePackage/moveSingle/after/pack2/User2.java with 100% similarity]
java/java-tests/testData/refactoring/movePackage/moveSingle/after/target/empty.txt [moved from testData/refactoring/movePackage/moveSingle/after/target/empty.txt with 100% similarity]
java/java-tests/testData/refactoring/movePackage/moveSingle/after/target/pack1/Class1.java [moved from testData/refactoring/movePackage/moveSingle/after/target/pack1/Class1.java with 100% similarity]
java/java-tests/testData/refactoring/movePackage/moveSingle/before/pack1/Class1.java [moved from testData/refactoring/movePackage/moveSingle/before/pack1/Class1.java with 100% similarity]
java/java-tests/testData/refactoring/movePackage/moveSingle/before/pack2/User1.java [moved from testData/refactoring/movePackage/moveSingle/before/pack2/User1.java with 100% similarity]
java/java-tests/testData/refactoring/movePackage/moveSingle/before/pack2/User2.java [moved from testData/refactoring/movePackage/moveSingle/before/pack2/User2.java with 100% similarity]
java/java-tests/testData/refactoring/movePackage/moveSingle/before/target/empty.txt [moved from testData/refactoring/movePackage/moveSingle/before/target/empty.txt with 100% similarity]
java/java-tests/testData/refactoring/movePackage/qualifiedRef/after/Usage.java [moved from testData/refactoring/movePackage/qualifiedRef/after/Usage.java with 100% similarity]
java/java-tests/testData/refactoring/movePackage/qualifiedRef/after/package1/empty.txt [moved from testData/refactoring/movePackage/qualifiedRef/after/package1/empty.txt with 100% similarity]
java/java-tests/testData/refactoring/movePackage/qualifiedRef/after/package2/empty.txt [moved from testData/refactoring/movePackage/qualifiedRef/after/package2/empty.txt with 100% similarity]
java/java-tests/testData/refactoring/movePackage/qualifiedRef/after/package2/test/A.java [moved from testData/refactoring/movePackage/qualifiedRef/after/package2/test/A.java with 100% similarity]
java/java-tests/testData/refactoring/movePackage/qualifiedRef/before/Usage.java [moved from testData/refactoring/movePackage/qualifiedRef/before/Usage.java with 100% similarity]
java/java-tests/testData/refactoring/movePackage/qualifiedRef/before/package1/empty.txt [moved from testData/refactoring/movePackage/qualifiedRef/before/package1/empty.txt with 100% similarity]
java/java-tests/testData/refactoring/movePackage/qualifiedRef/before/package1/test/A.java [moved from testData/refactoring/movePackage/qualifiedRef/before/package1/test/A.java with 100% similarity]
java/java-tests/testData/refactoring/movePackage/qualifiedRef/before/package2/empty.txt [moved from testData/refactoring/movePackage/qualifiedRef/before/package2/empty.txt with 100% similarity]
java/java-tests/testSrc/com/intellij/refactoring/MovePackageTest.java [moved from refactoring/tests/com/intellij/refactoring/MovePackageTest.java with 87% similarity]

similarity index 87%
rename from refactoring/tests/com/intellij/refactoring/MovePackageTest.java
rename to java/java-tests/testSrc/com/intellij/refactoring/MovePackageTest.java
index 48ea1e5bcfcf4fbfc93404db3414e0bea67df85e..1a83426c3a42745f552d451825b0167ef1af49e3 100644 (file)
@@ -7,9 +7,15 @@ import com.intellij.psi.PsiDirectory;
 import com.intellij.psi.PsiPackage;
 import com.intellij.refactoring.move.moveClassesOrPackages.MoveClassesOrPackagesProcessor;
 import com.intellij.refactoring.move.moveClassesOrPackages.SingleSourceRootMoveDestination;
+import com.intellij.JavaTestUtil;
 
 public class MovePackageTest extends MultiFileTestCase {
 
+  @Override
+  protected String getTestDataPath() {
+    return JavaTestUtil.getJavaTestDataPath();
+  }
+
   public void testMoveSingle() throws Exception {
     doTest(new String[]{"pack1"}, "target");
   }
@@ -34,12 +40,12 @@ public class MovePackageTest extends MultiFileTestCase {
   private void doTest(final String[] packageNames, final String newPackageName) throws Exception {
     doTest(new PerformAction() {
       public void performAction(VirtualFile rootDir, VirtualFile rootAfter) throws Exception {
-        MovePackageTest.this.performAction(rootDir, packageNames, newPackageName);
+        MovePackageTest.this.performAction(packageNames, newPackageName);
       }
     });
   }
 
-  private void performAction(VirtualFile rootDir, String[] packageNames, String newPackageName) throws Exception {
+  private void performAction(String[] packageNames, String newPackageName) throws Exception {
     final PsiPackage[] packages = new PsiPackage[packageNames.length];
     for (int i = 0; i < packages.length; i++) {
       String packageName = packageNames[i];