Examples of JarIdentification


Examples of org.apache.maven.shared.jar.identification.JarIdentification

    public void testExposerWithJXR()
        throws Exception
    {
        File file = getSampleJar( "jxr.jar" );

        JarIdentification identification = new JarIdentification();

        EmbeddedMavenModelExposer exposer = new EmbeddedMavenModelExposer();
        exposer.expose( identification, new JarAnalyzer( file ) );

        assertFalse( "exposer.groupIds", identification.getPotentialGroupIds().isEmpty() );
        assertFalse( "exposer.artifactIds", identification.getPotentialArtifactIds().isEmpty() );
        assertFalse( "exposer.versions", identification.getPotentialVersions().isEmpty() );

        // TODO test others
    }
View Full Code Here

Examples of org.apache.maven.shared.jar.identification.JarIdentification

    public void testExposerWithANT()
        throws Exception
    {
        File file = getSampleJar( "ant.jar" );

        JarIdentification identification = new JarIdentification();

        EmbeddedMavenModelExposer exposer = new EmbeddedMavenModelExposer();
        exposer.expose( identification, new JarAnalyzer( file ) );

        assertTrue( "exposer.groupIds", identification.getPotentialGroupIds().isEmpty() );
        assertTrue( "exposer.artifactIds", identification.getPotentialArtifactIds().isEmpty() );
        assertTrue( "exposer.versions", identification.getPotentialVersions().isEmpty() );

        // TODO test others
    }
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.