Package org.rendersnake.servlet

Examples of org.rendersnake.servlet.URIMappingResolver.renderComponentForRequest()


    public void testMapping() {
        URIMappingResolver res = new URIMappingResolver();
        res.init(null);
        MockHttpRequest request = new MockHttpRequest();
        request.pathInfo = "/test.personal.html";
        Renderable page = res.renderComponentForRequest(request);
        assertNotNull(page);
        assertTrue(page.getClass() == PersonalPage.class);
    }

    public void testNullInfo() {
View Full Code Here


    public void testNullInfo() {
        URIMappingResolver res = new URIMappingResolver();
        res.init(null);
        MockHttpRequest request = new MockHttpRequest();
        Renderable page = res.renderComponentForRequest(request);
        assertNull(page);
    }

    public void testNullInfoEvenForNext() {
        URIMappingResolver res = new URIMappingResolver();
View Full Code Here

    public void testNullInfoEvenForNext() {
        URIMappingResolver res = new URIMappingResolver();
        res.setNextResolver(new QualifiedClassNameResolver());
        res.init(null);
        MockHttpRequest request = new MockHttpRequest();
        Renderable page = res.renderComponentForRequest(request);
        assertNull(page);
    }

    public void testRender() throws IOException {
        URIMappingResolver res = new URIMappingResolver();
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.