Examples of ZipFileDocument


Examples of org.apache.rat.document.impl.zip.ZipFileDocument

        super.tearDown();
    }

    public void testVisitReadableArchive() throws Exception {
      final File dummyJar = Resources.getResourceFile("elements/dummy.jar");
        ZipFileDocument document = new ZipFileDocument(dummyJar);
        analyser.analyse(document);
        assertEquals("Readable attribute set",
                     "<resource name='"
                     + dummyJar.getPath().replace('/', File.separatorChar)
                     + "'><archive-type name='readable'/>", out.toString());
View Full Code Here

Examples of org.apache.rat.document.impl.zip.ZipFileDocument

                     + "'><archive-type name='readable'/>", out.toString());
    }

    public void testVisitUnreadableArchive() throws Exception {
        String name = "src/test/artifacts/dummy.tar.gz";
        ZipFileDocument document = new ZipFileDocument((new File(name)));
        analyser.analyse(document);
        assertEquals("Readable attribute unset",
                     "<resource name='"
                     + name.replace('/', File.separatorChar)
                     + "'><archive-type name='unreadable'/>", out.toString());
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.