test data moved

This commit is contained in:
Dmitry Avdeev
2011-07-20 13:30:59 +04:00
parent 4be2c408a6
commit f41fdc2118
9 changed files with 9 additions and 6 deletions
@@ -1,6 +1,6 @@
package com.intellij.ide.plugins;
import com.intellij.openapi.application.PathManager;
import com.intellij.openapi.application.ex.PathManagerEx;
import junit.framework.TestCase;
import java.io.File;
@@ -12,8 +12,10 @@ import java.io.File;
public class PluginDescriptorTest extends TestCase {
public void testDescriptorLoading() throws Exception {
String path = PathManager.getHomePath().replace(File.separatorChar, '/') + "/community/platform/platform-impl/testData/pluginDescriptor";
IdeaPluginDescriptorImpl descriptor = PluginManager.loadDescriptorFromJar(new File(path + "/asp.jar"));
String path = PathManagerEx.getTestDataPath().replace(File.separatorChar, '/') + "/ide/plugins/pluginDescriptor";
File file = new File(path + "/asp.jar");
assertTrue(file + " not exist", file.exists());
IdeaPluginDescriptorImpl descriptor = PluginManager.loadDescriptorFromJar(file);
assertNotNull(descriptor);
}
}
@@ -1,6 +1,6 @@
package com.intellij.util.io.zip;
import com.intellij.openapi.application.PathManager;
import com.intellij.openapi.application.ex.PathManagerEx;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.util.lang.JarMemoryLoader;
import junit.framework.TestCase;
@@ -21,7 +21,7 @@ public class ReorderJarsTest extends TestCase {
public void testReordering() throws IOException {
String path = PathManager.getHomePath().replace(File.separatorChar, '/') + "/community/platform/util/testData/reorderJars";
String path = PathManagerEx.getTestDataPath().replace(File.separatorChar, '/') + "/ide/plugins/reorderJars";
JBZipFile zipFile = null;
try {
zipFile = new JBZipFile(path + "/annotations.jar");
@@ -70,7 +70,7 @@ public class ReorderJarsTest extends TestCase {
}
public void testPluginXml() throws Exception {
String path = PathManager.getHomePath().replace(File.separatorChar, '/') + "/community/platform/util/testData/reorderJars";
String path = PathManagerEx.getTestDataPath().replace(File.separatorChar, '/') + "/ide/plugins/reorderJars";
ReorderJarsMain.main(new String[] { path + "/zkmOrder.txt", path, myTempDirectory.getPath() } );
File[] files = myTempDirectory.listFiles();
+1
View File
@@ -18,6 +18,7 @@
<orderEntry type="library" name="Guava" level="project" />
<orderEntry type="library" name="jna" level="project" />
<orderEntry type="library" name="OroMatcher" level="project" />
<orderEntry type="module" module-name="testFramework" scope="TEST" />
</component>
<component name="copyright">
<Base>