FrontierImpl implements Frontier { @Override public void addNewUris(List<CrawleableUri> uris) { for (CrawleableUri uri : uris) { addNewUri(uri); } } FrontierImpl(UriNormalizer normalizer, UriFilterComposer relationalUriFilter, UriQueue queue,
			List<UriGenerator> uriGenerators, GraphLogger graphLogger, boolean doesRecrawling, long generalRecrawlTime,
			long timerPeriod);  FrontierImpl(UriNormalizer normalizer, UriFilterComposer relationalUriFilter, UriQueue queue,
			List<UriGenerator> uriGenerators, boolean doesRecrawling, long generalRecrawlTime, long timerPeriod);  FrontierImpl(UriNormalizer normalizer, UriFilterComposer relationalUriFilter, URIReferences uriReferences,
			UriQueue queue, List<UriGenerator> uriGenerators,boolean doesRecrawling, OutDatedUriRetriever outDatedUriRetriever);  FrontierImpl(UriNormalizer normalizer, UriFilterComposer relationalUriFilter, UriQueue queue,
			List<UriGenerator> uriGenerators, boolean doesRecrawling);  FrontierImpl(UriNormalizer normalizer, UriFilterComposer relationalUriFilter, UriQueue queue,
			List<UriGenerator> uriGenerators);  FrontierImpl(UriNormalizer normalizer, UriFilterComposer relationalUriFilter, URIReferences uriReferences,
			UriQueue queue, List<UriGenerator> uriGenerators, GraphLogger graphLogger, boolean doesRecrawling,
			long generalRecrawlTime, long timerPeriod,OutDatedUriRetriever outDatedUriRetriever); @Override List<CrawleableUri> getNextUris(); @Override void addNewUris(List<CrawleableUri> uris); @Override void addNewUri(CrawleableUri uri); @Override void crawlingDone(List<CrawleableUri> uris); @Override int getNumberOfPendingUris(); @Override boolean doesRecrawling(); @Override void close(); static long getGeneralRecrawlTime(); UriQueue getQueue(); static final long DEFAULT_GENERAL_RECRAWL_TIME; }
@Test public void addNewUris() throws Exception { queue.purge(); filter.purge(); frontier.addNewUris(uris); List<CrawleableUri> nextUris = frontier.getNextUris(); List<CrawleableUri> assertion = new ArrayList<CrawleableUri>(); assertion.add(cuf.create(new URI("http: InetAddress.getByName("194.109.129.58"), UriType.DEREFERENCEABLE)); assertion.add(cuf.create(new URI("http: UriType.DEREFERENCEABLE)); assertEquals("Should be the same as uris array", assertion, nextUris); }