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

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


*/
@Test
public class HtmlButtonTest {

  public void button_teste() {
    HtmlButton ui = Html.button().end();

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


    assertThat(ui, hasToString(equalTo("<button></button>")));
  }

  public void button_text() {
    HtmlButton ui = Html.button()
        .text("Button")
        .end();

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

    assertThat(ui, hasToString(equalTo("<button>Button</button>")));
  }

  public void button_type() {
    HtmlButton ui = Html.button()
        .type("submit")
        .end();

    assertThat(ui, hasToString(equalTo("<button type=\"submit\"></button>")));
  }
View Full Code Here

    assertThat(ui, hasToString(equalTo("<button type=\"submit\"></button>")));
  }

  public void button_style() {
    HtmlButton ui = Html.button()
        .styleClass("btn")
        .end();

    assertThat(ui, hasToString(equalTo("<button class=\"btn\"></button>")));
  }
View Full Code Here

    assertThat(ui, hasToString(equalTo("<button class=\"btn\"></button>")));
  }

  public void button_data_way_multi_submit() {
    HtmlButton ui = Html.button()
        .multiSubmit("limite-list")
        .end();

    assertThat(ui, hasToString(equalTo("<button data-way-multi-submit=\"limite-list\"></button>")));
  }
View Full Code Here

TOP

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

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.