Package org.apache.wicket.util.tester.cookies

Examples of org.apache.wicket.util.tester.cookies.CollectAllRequestCookiesPage


   * https://issues.apache.org/jira/browse/WICKET-5147
   */
  @Test
  public void wicketTesterCookieHandlingWithoutRedirect() {
    // no cookies set
    CollectAllRequestCookiesPage collectingPage = collectAllRequestCookiesOnThisPage();
    Assert.assertTrue("no cookie in first request",collectingPage.getCookies().isEmpty());
    lastResponseDoesNotHaveAnyCookies();
    responseDoesNotHaveAnyCookies();
    requestDoesNotHaveAnyCookies();
   
    // set cookie on request
View Full Code Here


    setCookieInResponseAndRedirect(firstCookie);
    lastResponseShouldHaveTheseCookies(firstCookie);
    requestShouldHaveTheseCookies(firstCookie);

    // cookie in response after redirect should appear in next request
    CollectAllRequestCookiesPage collectingPage = collectAllRequestCookiesOnThisPage();
    requestOnPageShouldHaveTheseCookies(collectingPage,firstCookie);
    lastResponseDoesNotHaveAnyCookies();
    requestShouldHaveTheseCookies(firstCookie);
    responseDoesNotHaveAnyCookies();
   
View Full Code Here

TOP

Related Classes of org.apache.wicket.util.tester.cookies.CollectAllRequestCookiesPage

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.