use of edu.uci.ics.crawler4j.parser.ExtractedUrlAnchorPair in project crawler4j by yasserg.
the class HtmlContentHandlerTest method testSciptInHead.
@Test
public void testSciptInHead() throws Exception {
HtmlContentHandler parse = parseHtml("<html><head>" + "<script src=\"/js/app.js\"></script>" + "</head></html>");
ExtractedUrlAnchorPair script = parse.getOutgoingUrls().get(0);
assertEquals("/js/app.js", script.getHref());
}
Aggregations