Package se.unbound.tapestry.breadcrumbs.mocks

Examples of se.unbound.tapestry.breadcrumbs.mocks.IndexPageMock


    }

    @Test
    public void dispatcherResetsBreadCrumbListIfResetAnnotationIsPresent() throws Exception {
        this.breadCrumbList.add(new BreadCrumbInfo("edit.title", new LinkMock("/edit/2"), "Edit"));
        this.addPage("index", new IndexPageMock());
        final Request request = new RequestMock("/index/1");
        final Response response = new ResponseMock();
        this.dispatcher.dispatch(request, response);
        assertEquals("list size", 1, this.breadCrumbList.size());
    }
View Full Code Here


    }

    @Test
    public void dispatcherResetsBreadCrumbListIfRefererIsNoValidURI() throws Exception {
        this.breadCrumbList.add(new BreadCrumbInfo("edit.title", new LinkMock("/edit/2"), "Edit"));
        this.addPage("index", new IndexPageMock());
        final RequestMock request = new RequestMock("localhost", 80, "/app", "/index/1");
        request.addHeader("Referer", "http://localhost/app/");
        final Response response = new ResponseMock();
        this.dispatcher.dispatch(request, response);
        assertEquals("list size", 1, this.breadCrumbList.size());
View Full Code Here

TOP

Related Classes of se.unbound.tapestry.breadcrumbs.mocks.IndexPageMock

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.