Package se.unbound.tapestry.breadcrumbs

Examples of se.unbound.tapestry.breadcrumbs.BreadCrumbInfo


    @Test
    public void renderCrumbList() {
        final PageRenderLinkSource linkSource = this.getService(PageRenderLinkSource.class);
        final BreadCrumbList breadCrumbList = new BreadCrumbList(true, 5);
        breadCrumbList.add(new BreadCrumbInfo("msg1", linkSource.createPageRenderLink("page1"), "page1"));
        breadCrumbList.add(new BreadCrumbInfo("msg2", linkSource.createPageRenderLink("page2"), "page2"));
        this.getService(ApplicationStateManager.class).set(BreadCrumbList.class, breadCrumbList);

        final Document page = this.renderPage("page2");
        final String pageContent = page.toString();
        assertTrue("page contains Message1", pageContent.contains("Message1"));
View Full Code Here


   
    @Test
    public void renderCrumbListTitle() {
        final PageRenderLinkSource linkSource = this.getService(PageRenderLinkSource.class);
        final BreadCrumbList breadCrumbList = new BreadCrumbList(true, 5);
        BreadCrumbInfo info = new BreadCrumbInfo("msg1", linkSource.createPageRenderLink("page1"), "page1");
        info.setTitle("PageTitle");
        breadCrumbList.add(info);
        breadCrumbList.add(new BreadCrumbInfo("msg2", linkSource.createPageRenderLink("page2"), "page2"));
        this.getService(ApplicationStateManager.class).set(BreadCrumbList.class, breadCrumbList);

        final Document page = this.renderPage("page2");
        final String pageContent = page.toString();
        assertTrue("page contains PageTitle", pageContent.contains("PageTitle"));
View Full Code Here

TOP

Related Classes of se.unbound.tapestry.breadcrumbs.BreadCrumbInfo

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.