Package org.apache.rat.document

Examples of org.apache.rat.document.IDocument


     * @param file the file to be reported on
     * @throws RatReportFailedException
     */
    private void report(final RatReport report, File file) throws RatReportFailedException {

        IDocument document = new FileDocument(file, UNARCHIVER);
        report.report(document);

    }
View Full Code Here


        assertNotNull("Document iterator has one element", documentIterator);
        assertTrue("Document iterator has one element", documentIterator.hasNext());
        Object next = documentIterator.next();
        assertNotNull("Document iterator has one element", next);
        assertTrue("Document iterator has one element", next instanceof IDocument);
        IDocument document = (IDocument) next;
        assertEquals("Document named", "MANIFEST.MF", document.getName());
        Iterator subsubcollectionIterator = subcollection.subcollectionIterator();
        assertNotNull("No sub collections", subsubcollectionIterator);
        assertFalse("No sub collections", subsubcollectionIterator.hasNext());
    }
View Full Code Here

        assertNotNull("Document iterator has one element", documentIterator);
        assertTrue("Document iterator has one element", documentIterator.hasNext());
        Object next = documentIterator.next();
        assertNotNull("Document iterator has one element", next);
        assertTrue("Document iterator has one element", next instanceof IDocument);
        IDocument document = (IDocument) next;
        assertEquals("Document named", "Empty.txt", document.getName());
        Iterator subsubcollectionIterator = subcollection.subcollectionIterator();
        assertNotNull("No sub collections", subsubcollectionIterator);
        assertFalse("No sub collections", subsubcollectionIterator.hasNext());
    }
View Full Code Here

TOP

Related Classes of org.apache.rat.document.IDocument

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.