Package br.com.objectos.way.ui.builder

Examples of br.com.objectos.way.ui.builder.HtmlDiv


*/
@Test
public class HtmlDivTest {

  public void div_test() {
    HtmlDiv ui = div().end();

    assertThat(ui, hasToString(equalTo("<div></div>")));
  }
View Full Code Here


    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>")));
  }
View Full Code Here

    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>")));
  }
View Full Code Here

    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>")));
View Full Code Here

    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>")));
View Full Code Here

  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();
View Full Code Here

  public void div_com_form_interno() {
    String contra = "/div-com-form.mustache";
    String prova = HtmlsFalso.toString(contra);

    HtmlDiv ui = div()
        .add(
            form().end()
        )
        .end();
View Full Code Here

  }

  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()
View Full Code Here

TOP

Related Classes of br.com.objectos.way.ui.builder.HtmlDiv

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.