@Test public void should_generate_full_ops_href_tag() { hyperlink.setId("fullId"); hyperlink.addCssClass("classy"); hyperlink.addCssStyle("styly"); hyperlink.setHref("fullHref"); hyperlink.addContent("valued"); assertThat(hyperlink.toHtml().toString()).isEqualTo("<a id=\"fullId\" class=\"classy\" style=\"styly\" href=\"fullHref\">valued</a>"); }
public void setHref(String href) { this.href = href; }
HtmlHyperlink extends HtmlTagWithContent { public void setHref(String href) { this.href = href; } }
HtmlHyperlink extends HtmlTagWithContent { public void setHref(String href) { this.href = href; } HtmlHyperlink();  HtmlHyperlink(String href, String label); }
HtmlHyperlink extends HtmlTagWithContent { public void setHref(String href) { this.href = href; } HtmlHyperlink();  HtmlHyperlink(String href, String label); String getHref(); void setHref(String href); String getOnclick(); void setOnclick(String onclick); }
HtmlHyperlink extends HtmlTagWithContent { public void setHref(String href) { this.href = href; } HtmlHyperlink();  HtmlHyperlink(String href, String label); String getHref(); void setHref(String href); String getOnclick(); void setOnclick(String onclick);  }