Examples of calcOutputDirs()


Examples of org.archive.modules.writer.WARCWriterProcessor.calcOutputDirs()

        Server server = newHttpServer();

        FetchHTTP fetcher = FetchHTTPTests.newTestFetchHttp(getClass().getName());
        WARCWriterProcessor warcWriter = WARCWriterProcessorTest.newTestWarcWriter(getClass().getName());
        warcWriter.setServerCache(fetcher.getServerCache());
        for (File dir: warcWriter.calcOutputDirs()) {
            /* make sure we don't have other stuff hanging around that will
             * confuse the warc reader checks later */
            FileUtils.deleteDirectory(dir);
        }

View Full Code Here

Examples of org.archive.modules.writer.WARCWriterProcessor.calcOutputDirs()

            String payloadRecordIdWithBrackets = "<"
                    + historyStore().store.get(expectedDigest).get(
                            A_WARC_RECORD_ID) + ">";
           
            // check the warc records
            List<File> warcDirs = warcWriter.calcOutputDirs();
            assertEquals(1, warcDirs.size());
            String[] warcs = warcDirs.get(0).list();
            assertEquals(1, warcs.length);
            WARCReader warcReader = WARCReaderFactory.get(new File(warcDirs.get(0), warcs[0]));
            Iterator<ArchiveRecord> recordIterator = warcReader.iterator();
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.