Package org.rendersnake.servlet

Examples of org.rendersnake.servlet.URIMappingResolver


import org.rendersnake.servlet.URIMappingResolver;

public class URIMappingResolverTest extends TestCase {

    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);
    }
View Full Code Here


        assertNotNull(page);
        assertTrue(page.getClass() == PersonalPage.class);
    }

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

        Renderable page = res.renderComponentForRequest(request);
        assertNull(page);
    }

    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);
    }
View Full Code Here

        Renderable page = res.renderComponentForRequest(request);
        assertNull(page);
    }

    public void testRender() throws IOException {
        URIMappingResolver res = new URIMappingResolver();
        res.renderOn(new HtmlCanvas());

    }
View Full Code Here

TOP

Related Classes of org.rendersnake.servlet.URIMappingResolver

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.