313233343536373839
*/ @Test public class HtmlDivTest { public void div_test() { HtmlDiv ui = div().end(); assertThat(ui, hasToString(equalTo("<div></div>"))); }
373839404142434445
assertThat(ui, hasToString(equalTo("<div></div>"))); } public void div_com_id() { HtmlDiv ui = div().id("id").end(); assertThat(ui, hasToString(equalTo("<div id=\"id\"></div>"))); }
4344454647484950515253
assertThat(ui, hasToString(equalTo("<div id=\"id\"></div>"))); } public void div_com_style() { HtmlDiv ui = div() .styleClass("span9") .end(); assertThat(ui, hasToString(equalTo("<div class=\"span9\"></div>"))); }
5152535455565758596061
assertThat(ui, hasToString(equalTo("<div class=\"span9\"></div>"))); } public void div_com_id_e_style() { HtmlDiv ui = div() .id("id") .styleClass("span9") .end(); assertThat(ui, hasToString(equalTo("<div id=\"id\" class=\"span9\"></div>")));
6061626364656667686970
assertThat(ui, hasToString(equalTo("<div id=\"id\" class=\"span9\"></div>"))); } public void div_com_style_e_id_teste_ordem_inversa_dos_atributos() { HtmlDiv ui = div() .styleClass("span9") .id("id") .end(); assertThat(ui, hasToString(equalTo("<div class=\"span9\" id=\"id\"></div>")));
7273747576777879808182
public void div_com_div_interna() { String contra = "/div-com-div-interna.mustache"; String prova = HtmlsFalso.toString(contra); HtmlDiv ui = div() .add( div().end() ) .end();
8586878889909192939495
public void div_com_form_interno() { String contra = "/div-com-form.mustache"; String prova = HtmlsFalso.toString(contra); HtmlDiv ui = div() .add( form().end() ) .end();
979899100101102103104105106107
} public void div_com_form_interno_ambos_com_parametro() { String contra = "/div-com-form-com-parametro.mustache"; String prova = HtmlsFalso.toString(contra); HtmlDiv ui = div() .id("id") .add( form() .method(MethodFormType.POST) .end()