Package org.apache.tapestry.web

Examples of org.apache.tapestry.web.WebRequest


        request.getParameterNames();
        control.setReturnValue(newEnumeration());

        replayControls();

        WebRequest wr = new PortletWebRequest(request);

        List l = wr.getParameterNames();

        checkList(l);

        verifyControls();
    }
View Full Code Here


        request.getParameter("artist");
        control.setReturnValue(value);

        replayControls();

        WebRequest wr = new PortletWebRequest(request);

        assertSame(value, wr.getParameterValue("artist"));

        verifyControls();
    }
View Full Code Here

        request.getParameterValues("artist");
        control.setReturnValue(values);

        replayControls();

        WebRequest wr = new PortletWebRequest(request);

        assertSame(values, wr.getParameterValues("artist"));

        verifyControls();
    }
View Full Code Here

        request.getContextPath();
        control.setReturnValue("/foo");

        replayControls();

        WebRequest wr = new PortletWebRequest(request);

        assertEquals("/foo", wr.getContextPath());

        verifyControls();
    }
View Full Code Here

        request.getAttributeNames();
        control.setReturnValue(newEnumeration());

        replayControls();

        WebRequest wr = new PortletWebRequest(request);

        List l = wr.getAttributeNames();

        checkList(l);

        verifyControls();
    }
View Full Code Here

        request.getAttribute("attr");
        control.setReturnValue(attribute);

        replayControls();

        WebRequest wr = new PortletWebRequest(request);

        assertSame(attribute, wr.getAttribute("attr"));

        verifyControls();
    }
View Full Code Here

        request.setAttribute("name", attribute);

        replayControls();

        WebRequest wr = new PortletWebRequest(request);

        wr.setAttribute("name", attribute);

        verifyControls();
    }
View Full Code Here

        request.removeAttribute("tonull");

        replayControls();

        WebRequest wr = new PortletWebRequest(request);

        wr.setAttribute("tonull", null);

        verifyControls();
    }
View Full Code Here

        // Get it, doesn't exist, wreate false

        replayControls();

        WebRequest wr = new PortletWebRequest(request);

        assertNull(wr.getSession(false));

        verifyControls();

        request.getPortletSession(true);
        control.setReturnValue(session);

        // #2: Get it, wreate is true, it is wreated.

        replayControls();

        WebSession cs = wr.getSession(true);

        verifyControls();

        // #3: Cached in local variable, make sure same
        // think returned.

        replayControls();

        assertSame(cs, wr.getSession(false));

        verifyControls();
    }
View Full Code Here

        request.getScheme();
        control.setReturnValue("http");

        replayControls();

        WebRequest wr = new PortletWebRequest(request);

        assertEquals("http", wr.getScheme());

        verifyControls();
    }
View Full Code Here

TOP

Related Classes of org.apache.tapestry.web.WebRequest

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.