blob: fd4a052a8933f02b276ab6d3fd9d28598bfa2e72 [file] [log] [blame]
package com.intellij.ide.plugins;
import com.intellij.openapi.application.ex.PathManagerEx;
import junit.framework.TestCase;
import java.io.File;
/**
* @author Dmitry Avdeev
* Date: 7/14/11
*/
public class PluginDescriptorTest extends TestCase {
public void testDescriptorLoading() throws Exception {
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);
}
}