@Test public void should_have_correct_html_rendering() { assertThat(tag.toHtml().toString()).isEqualTo("test"); }
@Override public StringBuilder toHtml() { StringBuilder html = new StringBuilder(); html.append(getHtmlOpeningTag()); html.append(getHtmlClosingTag()); return html; }
AbstractHtmlTag implements HtmlTag { @Override public StringBuilder toHtml() { StringBuilder html = new StringBuilder(); html.append(getHtmlOpeningTag()); html.append(getHtmlClosingTag()); return html; } }
AbstractHtmlTag implements HtmlTag { @Override public StringBuilder toHtml() { StringBuilder html = new StringBuilder(); html.append(getHtmlOpeningTag()); html.append(getHtmlClosingTag()); return html; }  }
AbstractHtmlTag implements HtmlTag { @Override public StringBuilder toHtml() { StringBuilder html = new StringBuilder(); html.append(getHtmlOpeningTag()); html.append(getHtmlClosingTag()); return html; }  @Override StringBuilder toHtml(); String getTag(); String getId(); void setId(String id); StringBuilder getCssClass(); void setCssClass(StringBuilder cssClass); StringBuilder getCssStyle(); void setCssStyle(StringBuilder cssStyle); Map<String, String> getDynamicAttributes(); String getDynamicAttributeValue(String attributeName); void setDynamicAttributes(Map<String, String> dynamicAttributes); void addDynamicAttribute(String name, String value); void removeDynamicAttribute(String attributeName); void addCssClass(String cssClass); void addCssStyle(String cssStyle); void addAttributes(Map<String, String> attributes); void addAttributesOnlyName(String... attributesOnlyName); String attributesOnlyNameToHtml(); }
AbstractHtmlTag implements HtmlTag { @Override public StringBuilder toHtml() { StringBuilder html = new StringBuilder(); html.append(getHtmlOpeningTag()); html.append(getHtmlClosingTag()); return html; }  @Override StringBuilder toHtml(); String getTag(); String getId(); void setId(String id); StringBuilder getCssClass(); void setCssClass(StringBuilder cssClass); StringBuilder getCssStyle(); void setCssStyle(StringBuilder cssStyle); Map<String, String> getDynamicAttributes(); String getDynamicAttributeValue(String attributeName); void setDynamicAttributes(Map<String, String> dynamicAttributes); void addDynamicAttribute(String name, String value); void removeDynamicAttribute(String attributeName); void addCssClass(String cssClass); void addCssStyle(String cssStyle); void addAttributes(Map<String, String> attributes); void addAttributesOnlyName(String... attributesOnlyName); String attributesOnlyNameToHtml();  }