mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
test data moved
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user