Package org.apache.tapestry.services

Examples of org.apache.tapestry.services.Request


    @Test
    public void post_change_to_nested_component()
    {
        Session session = mockSession();
        Request request = mockRequest();
        Object value = new Object();

        train_getSession(request, true, session);

        session.setAttribute("state:foo.Bar:fee.fum:field", value);
View Full Code Here


    }

    @Test
    public void gather_changes_with_no_session()
    {
        Request request = mockRequest();

        train_getSession(request, false, null);

        replay();
View Full Code Here

    @Test
    public void gather_changes_with_active_session()
    {
        Session session = mockSession();
        Request request = mockRequest();

        train_getSession(request, false, session);
        train_getAttributeNames(
                session,
                "state:foo.Bar:",
View Full Code Here

        content_type("image/gif", "test.gif");
    }

    private void content_type(String contentType, String fileName) throws IOException
    {
        Request request = mockRequest();
        HttpServletResponse hsr = mockHttpServletResponse();

        train_setContentLength(hsr, anyInt());
        train_setDateHeader(hsr, eq("Last-Modified"), anyLong());
        train_setContentType(hsr, contentType);
View Full Code Here

{
    @Test
    public void no_dot_or_colon_in_path() throws Exception
    {
        ComponentActionRequestHandler handler = newComponentActionRequestHandler();
        Request request = mockRequest();
        Response response = mockResponse();

        train_getPath(request, "/foo/bar/baz");

        replay();
View Full Code Here

    @Test
    public void page_activation_context_in_request() throws Exception
    {
        ComponentActionRequestHandler handler = newComponentActionRequestHandler();
        Request request = mockRequest();
        Response response = mockResponse();
        ActionResponseGenerator generator = newMock(ActionResponseGenerator.class);

        train_getPath(request, "/mypage:eventname");
View Full Code Here

    private void test(String requestPath, String logicalPageName, String nestedComponentId,
            String eventType, String... context) throws IOException
    {
        ComponentActionRequestHandler handler = newComponentActionRequestHandler();
        Request request = mockRequest();
        Response response = mockResponse();
        ActionResponseGenerator generator = newMock(ActionResponseGenerator.class);

        train_getPath(request, requestPath);
View Full Code Here

    @SuppressWarnings("unchecked")
    @Test
    public void page_link()
    {
        Request request = mockRequest();
        Response response = mockResponse();
        Page page = mockPage();
        ComponentPageElement rootElement = mockComponentPageElement();
        LinkFactoryListener listener = mockLinkFactoryListener();
        ComponentInvocationMap map = mockComponentInvocationMap();
View Full Code Here

    @SuppressWarnings("unchecked")
    @Test
    public void page_link_using_supplied_activation_context()
    {
        Request request = mockRequest();
        Response response = mockResponse();
        Page page = mockPage();
        LinkFactoryListener listener = mockLinkFactoryListener();
        ComponentInvocationMap map = mockComponentInvocationMap();
View Full Code Here

    @SuppressWarnings("unchecked")
    @Test
    public void page_link_using_empty_activation_context_and_override()
    {
        Request request = mockRequest();
        Response response = mockResponse();
        Page page = mockPage();
        LinkFactoryListener listener = mockLinkFactoryListener();
        ComponentInvocationMap map = mockComponentInvocationMap();
View Full Code Here

TOP

Related Classes of org.apache.tapestry.services.Request

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.