Examples of click()


Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.exceptionhandler.HandledNavigationMappingPage.click()

  }

  @Test
  public void shouldHandleNavigationMappingException() throws Exception {
    HandledNavigationMappingPage page = this.pages.get(HandledNavigationMappingPage.class);
    OutcomePage outcome = page.click();
    assertThat(outcome.getBodyText(), is("Exception has been handled"));
  }

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

Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.exceptionhandler.ResponseBody.click()

  }

  @Test
  public void shouldHandleResponseBody() throws Exception {
    ResponseBody page = this.pages.get(ResponseBody.class);
    ResponseBodyOutcome outcome = page.click();
    assertThat(outcome.getBodyText(), is("Handled by a @ResponseBody"));
  }

}
View Full Code Here

Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.navigate.NavigateAnnotationHttpEntityPage.click()

  }

  @Test
  public void shouldNavigateAnnotationHttpEntity() throws Exception {
    NavigateAnnotationHttpEntityPage page = pages.get(NavigateAnnotationHttpEntityPage.class);
    assertThat(page.click(), is("test"));
  }
}
View Full Code Here

Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.navigate.NavigateAnnotationLinkPage.click()

  }

  @Test
  public void shouldNavigateAnnotationLink() throws Exception {
    NavigateAnnotationLinkPage page = pages.get(NavigateAnnotationLinkPage.class);
    NavigationDestinationPage destination = page.click();
    assertThat(destination.getBodyText(), is("Navigation Destination from : from annotation"));
  }

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

Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.navigate.NavigateAnnotationResponseBodyPage.click()

  }

  @Test
  public void shouldNavigateAnnotationResponseBody() throws Exception {
    NavigateAnnotationResponseBodyPage page = pages.get(NavigateAnnotationResponseBodyPage.class);
    assertThat(page.click(), is("responsebody"));
  }

  @Test
  public void shouldNavigateAnnotationHttpEntity() throws Exception {
    NavigateAnnotationHttpEntityPage page = pages.get(NavigateAnnotationHttpEntityPage.class);
View Full Code Here

Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.navigate.NavigateAnnotationStreamingPage.click()

  }

  @Test
  public void shouldNavigateAnnotationStreaming() throws Exception {
    NavigateAnnotationStreamingPage page = pages.get(NavigateAnnotationStreamingPage.class);
    assertThat(page.click(), is("hello"));
  }

  @Test
  public void shouldNavigateAnnotationResponseBody() throws Exception {
    NavigateAnnotationResponseBodyPage page = pages.get(NavigateAnnotationResponseBodyPage.class);
View Full Code Here

Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.navigate.NavigateAnnotationWithValuePage.click()

  @Test
  public void shouldNavigateAnnotationWithValue() throws Exception {
    NavigateAnnotationWithValuePage page = pages.get(NavigateAnnotationWithValuePage.class);
    page.setInputText("/spring/navigation/destination?s=valuetest");
    NavigationDestinationPage destination = page.click();
    assertThat(destination.getBodyText(), is("Navigation Destination from : valuetest"));
  }

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

Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.navigate.NavigateDirectPage.click()

  }

  @Test
  public void shouldNavigateDirect() throws Exception {
    NavigateDirectPage page = pages.get(NavigateDirectPage.class);
    NavigationDestinationPage destination = page.click();
    assertThat(destination.getBodyText(), is("Navigation Destination from : direct"));
  }

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

Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.navigate.NavigateImplicitButtonPage.click()

  }

  @Test
  public void shouldNavigateImplicitButton() throws Exception {
    NavigateImplicitButtonPage page = pages.get(NavigateImplicitButtonPage.class);
    NavigationDestinationPage destination = page.click();
    assertThat(destination.getBodyText(), is("Navigation Destination from : from the implicit button"));
  }

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

Examples of org.springframework.springfaces.traveladvisor.integrationtest.page.navigate.NavigateImplicitCommandButtonPage.click()

  }

  @Test
  public void shouldNavigateImplicitCommandButton() throws Exception {
    NavigateImplicitCommandButtonPage page = pages.get(NavigateImplicitCommandButtonPage.class);
    NavigationDestinationPage destination = page.click();
    assertThat(destination.getBodyText(), is("Navigation Destination from : from the implicit command button"));
  }

  @Test
  public void shouldNavigateImplicitMvcRedirect() throws Exception {
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.