Package org.apache.tapestry5

Examples of org.apache.tapestry5.Link.toURI()


        link.addParameter("barney", null);
        link.addParameter("barney", "foo");
        link.addParameter("barney", "bar");
        link.addParameter("barney", "baz");

        assertEquals(link.toURI(), expectedURI);

        verify();
    }

View Full Code Here


        Link link = factory.createPageRenderLink(logicalName, false);

        // Make sure the same link is returned.

        assertEquals(link.toURI(), encodedURL);

        verify();
    }

    private void testPageLinkCreation(String logicalName, String expectedURL, boolean overrideContext,
View Full Code Here

        // Make sure the same link is returned.

        assertSame(linkCapture.getValue(), link);

        assertEquals(link.toURI(), encodedURL);

        verify();
    }

    @Test
View Full Code Here

        LinkFactory factory = new LinkFactoryImpl(request, response, invocationMap, null, optimizer, queue,
                                                  securityManager, contextPathEncoder, collector);

        Link link = factory.createComponentEventLink(primaryPage, "gnip.gnop", "myevent", true, 3, 5, 9);

        assertEquals(link.toURI(), encodedURL);

        verify();

        assertEquals(link.getParameterValue(InternalConstants.CONTAINER_PAGE_NAME), "blocks/appdisplay");
        assertEquals(link.getParameterValue(InternalConstants.PAGE_CONTEXT_NAME), "x/y");
View Full Code Here

        // Make sure the same link is returned.

        assertSame(linkCapture.getValue(), link);

        assertEquals(link.toURI(), encodedURL);

        verify();

        return link;
    }
View Full Code Here

        // This could be shifted to createEventLink(), but leaving it alone verifys backwards
        // compatibility to 5.0.14.

        Link link = resources.createActionLink("UpdateMessage", false, "from getActionURL()");

        return link.toURI();
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.