Package org.codehaus.cargo.module

Examples of org.codehaus.cargo.module.JarArchive


     *
     * @throws Exception If an unexpected error occurs
     */
    public void testRandomAccess() throws Exception
    {
        JarArchive jar = new DefaultJarArchive(getTestInput(
            "org/apache/cactus/integration/ant/deployment/randomaccess.jar").getAbsolutePath());
        assertContains(jar.getResource("firstEntry.txt"), "firstEntry");
        assertContains(jar.getResource("secondEntry.txt"), "secondEntry");
        assertContains(jar.getResource("secondEntry.txt"), "secondEntry");
        assertContains(jar.getResource("firstEntry.txt"), "firstEntry");
    }
View Full Code Here


     *
     * @throws Exception If an unexpected error occurs
     */
    public void testContainsClass() throws Exception
    {
        JarArchive jar = new DefaultJarArchive(getTestInput(
            "org/apache/cactus/integration/ant/deployment/containsclass.jar").getAbsolutePath());
        assertTrue(jar.containsClass("test.Test"));
    }
View Full Code Here

     *
     * @throws Exception If an unexpected error occurs
     */
    public void testContainsClassEmpty() throws Exception
    {
        JarArchive jar = new DefaultJarArchive(getTestInput(
            "org/apache/cactus/integration/ant/deployment/empty.jar").getAbsolutePath());
        assertTrue(!jar.containsClass("test.Test"));
    }
View Full Code Here

TOP

Related Classes of org.codehaus.cargo.module.JarArchive

Copyright © 2018 www.massapicom. 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.