Examples of clickSubmitButton()


Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.validator.AbstractValidatorPageObject.clickSubmitButton()

  @Test
  public void shouldPassFromGenericSpringValidator() throws Exception {
    AbstractValidatorPageObject page = pages.get(GenericSpringBeanValidatorPage.class);
    page.setInputText("10");
    page = page.clickSubmitButton();
    assertThat(page.hasError(), is(false));
  }

  @Test
  public void shouldFailFromForClassValidator() throws Exception {
View Full Code Here

Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.validator.AbstractValidatorPageObject.clickSubmitButton()

  @Test
  public void shouldFailFromForClassValidator() throws Exception {
    AbstractValidatorPageObject page = pages.get(SpringBeanValidatorForClassPage.class);
    page.setInputText("1");
    page = page.clickSubmitButton();
    assertThat(page.hasError(), is(true));
    assertThat(page.getErrorMessage(), is("Value must be 30 or more"));
  }

  @Test
View Full Code Here

Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.validator.AbstractValidatorPageObject.clickSubmitButton()

  @Test
  public void shouldPassFromForClassValidator() throws Exception {
    AbstractValidatorPageObject page = pages.get(SpringBeanValidatorForClassPage.class);
    page.setInputText("30");
    page = page.clickSubmitButton();
    assertThat(page.hasError(), is(false));
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.