Package net.sourceforge.pebble.mock

Examples of net.sourceforge.pebble.mock.MockHttpSession


  public void testUserLoggedOutAndRedirectedToBlogHomePage() throws Exception {
    request.setParameter("redirectUrl", blog.getUrl());
    RedirectView view = (RedirectView)action.process(request, response);
    assertEquals(blog.getUrl(), view.getUri());

    MockHttpSession session = (MockHttpSession)request.getSession();
    assertNull(session.getAttribute(Constants.AUTHENTICATED_USER));
    assertTrue(session.wasInvalidated());
  }
View Full Code Here


  public void testUserLoggedOutAndRedirectedToBlogHomePage() throws Exception {
    request.setParameter("redirectUrl", blog.getUrl());
    RedirectView view = (RedirectView)action.process(request, response);
    assertEquals("/blog/", view.getUri());

    MockHttpSession session = (MockHttpSession)request.getSession();
    assertNull(session.getAttribute(Constants.AUTHENTICATED_USER));
    assertTrue(session.wasInvalidated());
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.pebble.mock.MockHttpSession

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.