1 23 package org.archive.crawler.selftest; 24 25 import java.io.File ; 26 import java.util.ArrayList ; 27 import java.util.Arrays ; 28 import java.util.Iterator ; 29 import java.util.List ; 30 31 40 public class BadURIsStopPageParsingSelfTest extends SelfTestCase 41 { 42 48 private static final List <File > FILES_TO_FIND = 49 Arrays.asList(new File [] 50 {new File ("goodone.html"), 51 new File ("goodthree.html"), 52 new File ("one.html"), 53 new File ("two.html"), 54 new File ("three.html")}); 55 56 public void testFilesFound() { 57 List <File > foundFiles = filesFoundInArc(); 58 ArrayList <File > editedFoundFiles 59 = new ArrayList <File >(foundFiles.size()); 60 for (Iterator i = foundFiles.iterator(); i.hasNext();) { 61 File f = (File )i.next(); 62 if (f.getAbsolutePath().endsWith("polishex.html")) { 63 continue; 67 } 68 editedFoundFiles.add(f); 69 } 70 testFilesInArc(FILES_TO_FIND, editedFoundFiles); 71 } 72 } 73 | Popular Tags |