@Test public void testHTMLParser_parse_checkTitle() { Document doc = HTMLParser.parse(SAMPLE_HTML); assertNotNull(doc); assertEquals(doc.title(), "My title"); }
public static Document parse(String html) { return Jsoup.parse(html); }
HTMLParser { public static Document parse(String html) { return Jsoup.parse(html); } }
HTMLParser { public static Document parse(String html) { return Jsoup.parse(html); } private  HTMLParser(); }
HTMLParser { public static Document parse(String html) { return Jsoup.parse(html); } private  HTMLParser(); static Document parse(String html); static Elements getElements(String html, String tag); static Elements getElements(Document document, String tag); static List<String> getAttributeValueFromElements(Elements elements, String attributeKey); static List<String> getTextFromElements(Elements elements); }
HTMLParser { public static Document parse(String html) { return Jsoup.parse(html); } private  HTMLParser(); static Document parse(String html); static Elements getElements(String html, String tag); static Elements getElements(Document document, String tag); static List<String> getAttributeValueFromElements(Elements elements, String attributeKey); static List<String> getTextFromElements(Elements elements);  }