Package com.atlassian.plugin

Examples of com.atlassian.plugin.PluginArtifact.toFile()


        FileUtils.moveFile(jar, zip);

        final JarPluginArtifact jarArtifact = new JarPluginArtifact(zip);
        JsonManifest jsonMf = new JsonManifestHandler().read(jarArtifact);
        PluginArtifact artifact = zipTransformer.convertConventionZipToPluginJar(jsonMf, jarArtifact);
        JarFile jarFile = new JarFile(artifact.toFile());
        Manifest mf = jarFile.getManifest();
        for (Map.Entry<String,String> entry : expectedHeaders.entrySet())
        {
            assertEquals(entry.getValue(), mf.getMainAttributes().getValue(entry.getKey()));
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.