Search in sources :

Example 1 with InnerPage

use of org.apache.wicket.core.request.mapper.PackageMapperTest.OuterPage.InnerPage in project wicket by apache.

the class PackageMapperTest method encodeInnerClass.

/**
 * https://issues.apache.org/jira/browse/WICKET-3838
 */
@Test
public void encodeInnerClass() {
    InnerPage page = new OuterPage.InnerPage();
    IPageProvider provider = new PageProvider(page);
    IRequestHandler handler = new BookmarkablePageRequestHandler(provider);
    Url url = innerClassEncoder.mapHandler(handler);
    assertEquals(MOUNT_PATH + '/' + "PackageMapperTest$OuterPage$InnerPage", url.toString());
}
Also used : IRequestHandler(org.apache.wicket.request.IRequestHandler) PageProvider(org.apache.wicket.core.request.handler.PageProvider) IPageProvider(org.apache.wicket.core.request.handler.IPageProvider) BookmarkablePageRequestHandler(org.apache.wicket.core.request.handler.BookmarkablePageRequestHandler) IPageProvider(org.apache.wicket.core.request.handler.IPageProvider) InnerPage(org.apache.wicket.core.request.mapper.PackageMapperTest.OuterPage.InnerPage) Url(org.apache.wicket.request.Url) Test(org.junit.Test)

Aggregations

BookmarkablePageRequestHandler (org.apache.wicket.core.request.handler.BookmarkablePageRequestHandler)1 IPageProvider (org.apache.wicket.core.request.handler.IPageProvider)1 PageProvider (org.apache.wicket.core.request.handler.PageProvider)1 InnerPage (org.apache.wicket.core.request.mapper.PackageMapperTest.OuterPage.InnerPage)1 IRequestHandler (org.apache.wicket.request.IRequestHandler)1 Url (org.apache.wicket.request.Url)1 Test (org.junit.Test)1