@Test public void testSubjectHeading() { Document document = Jsoup.parseBodyFragment( "<p><b>THIS IS A SUBJECT HEADING</b></p><p>THIS IS A NOT SUBJECT HEADING</p><p>THIS IS not a SUBJECT HEADING</p><p>THIS IS NOT A SUBJECT HEADING EITHER.</p>"); manipulator.manipulate(document); Elements h1s = document.select("h1"); assertEquals(1, h1s.size()); assertEquals("THIS IS A SUBJECT HEADING", h1s.first().text()); }
@Override public void manipulate(Document document) { addHeading(document, true, "h1"); addHeading(document, false, "h2"); }
Jsp101Headings implements ContentManipulator { @Override public void manipulate(Document document) { addHeading(document, true, "h1"); addHeading(document, false, "h2"); } }
Jsp101Headings implements ContentManipulator { @Override public void manipulate(Document document) { addHeading(document, true, "h1"); addHeading(document, false, "h2"); }  }
Jsp101Headings implements ContentManipulator { @Override public void manipulate(Document document) { addHeading(document, true, "h1"); addHeading(document, false, "h2"); }  @Override void manipulate(Document document); }
Jsp101Headings implements ContentManipulator { @Override public void manipulate(Document document) { addHeading(document, true, "h1"); addHeading(document, false, "h2"); }  @Override void manipulate(Document document);  }