FrontierImpl implements Frontier { @Override public List<CrawleableUri> getNextUris() { return queue.getNextUris(); } 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 getNextUris() throws Exception { queue.addUri(uris.get(1)); List<CrawleableUri> nextUris = frontier.getNextUris(); List<CrawleableUri> assertion = new ArrayList<CrawleableUri>(); assertion.add(uris.get(1)); assertEquals("Should be dbr:New_York", assertion, nextUris); }