2930313233343536373839
*/ @Test public class HtmlAnchorTest { public void a() { HtmlA ui = Html.a() .end(); assertThat(ui, hasToString(equalTo("<a></a>"))); }
3738394041424344454647
assertThat(ui, hasToString(equalTo("<a></a>"))); } public void a_com_id() { HtmlA ui = Html.a() .id("id") .end(); assertThat(ui, hasToString(equalTo("<a id=\"id\"></a>")));
4647484950515253545556
assertThat(ui, hasToString(equalTo("<a id=\"id\"></a>"))); } public void a_com_name() { HtmlA ui = Html.a() .name("name") .end(); assertThat(ui, hasToString(equalTo("<a name=\"name\"></a>")));
5556575859606162636465
assertThat(ui, hasToString(equalTo("<a name=\"name\"></a>"))); } public void a_style() { HtmlA ui = Html.a() .styleClass("span9") .end(); assertThat(ui, hasToString(equalTo("<a class=\"span9\"></a>")));
6465666768697071727374
assertThat(ui, hasToString(equalTo("<a class=\"span9\"></a>"))); } public void a_com_href() { HtmlA ui = Html.a() .href("#href") .end(); assertThat(ui, hasToString(equalTo("<a href=\"#href\"></a>")));
7374757677787980818283
assertThat(ui, hasToString(equalTo("<a href=\"#href\"></a>"))); } public void a_text() { HtmlA ui = Html.a() .text("Clique aqui") .end(); assertThat(ui, hasToString(equalTo("<a>Clique aqui</a>")));