Hr extends AbstractHtml { public static void setTagType(final TagType tagType) { Hr.tagType = tagType; } Hr(final AbstractHtml base, final AbstractAttribute... attributes); static TagType getTagType(); static void setTagType(final TagType tagType);  }
@Test public void testHr1() { Hr hr = new Hr(null); assertEquals("<hr>", hr.toHtmlString()); Hr.setTagType(TagType.OPENING_CLOSING); hr = new Hr(null); assertEquals("<hr></hr>", hr.toHtmlString()); Hr.setTagType(TagType.SELF_CLOSING); hr = new Hr(null); assertEquals("<hr/>", hr.toHtmlString()); Hr.setTagType(TagType.NON_CLOSING); hr = new Hr(null); assertEquals("<hr>", hr.toHtmlString()); }
@Test public void testHr2() { Hr.setTagType(TagType.SELF_CLOSING); Hr hr = new Hr(null); assertEquals("<hr/>", hr.toHtmlString()); }