Package org.impalaframework.web.servlet.wrapper

Examples of org.impalaframework.web.servlet.wrapper.CacheableHttpSession


   
    public void testGetWrappedCacheableSessionInvalid() throws Exception {
       
        final HttpSessionWrapper sessionWrapper = createMock(HttpSessionWrapper.class);
        final HttpServletRequest request = createMock(HttpServletRequest.class);
        final CacheableHttpSession session = createMock(CacheableHttpSession.class);
       
        final String attribute = MappedHttpServletRequest.class.getName()+".WRAPPED_SESSION";
        expect(request.getAttribute(attribute)).andReturn(session);
        expect(session.isValid()).andReturn(false);
        request.removeAttribute(attribute);
       
        replay(request, sessionWrapper, session);
       
        MappedHttpServletRequest wrapper = new MappedHttpServletRequest(servletContext, request, sessionWrapper, null, applicationId);
View Full Code Here


        verify(request, sessionWrapper, session);      
    }
   
    public void testMaybeCacheTrue() throws Exception {

        final CacheableHttpSession session = createMock(CacheableHttpSession.class);
       
        final String attribute = MappedHttpServletRequest.class.getName()+".WRAPPED_SESSION";
        request.setAttribute(attribute, session);
       
        replay(request, session);
View Full Code Here

TOP

Related Classes of org.impalaframework.web.servlet.wrapper.CacheableHttpSession

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.