Example usage for org.apache.wicket.protocol.http.mock MockHttpServletResponse getRedirectLocation

List of usage examples for org.apache.wicket.protocol.http.mock MockHttpServletResponse getRedirectLocation

Introduction

In this page you can find the example usage for org.apache.wicket.protocol.http.mock MockHttpServletResponse getRedirectLocation.

Prototype

public String getRedirectLocation() 

Source Link

Document

Get the location that was redirected to.

Usage

From source file:org.apache.syncope.client.enduser.SyncopeEnduserApplicationTest.java

License:Apache License

@Test
public void testRedirectToIndex() {
    tester.setFollowRedirects(false);/*w w  w.j  a va2  s. c  o m*/
    tester.startPage(HomePage.class);
    tester.assertNoErrorMessage();
    MockHttpServletResponse response = tester.getLastResponse();
    Assert.assertThat(response.getRedirectLocation(), CoreMatchers.equalTo("app/"));
}