Package org.apache.myfaces.test.mock.resource

Examples of org.apache.myfaces.test.mock.resource.MockSimpleResourceHandler.libraryExists()


    public void testResourceHandler() throws Exception
    {
        ResourceHandler handler = new MockSimpleResourceHandler(_documentRoot);

        assertTrue(handler.libraryExists("testlib"));
        assertFalse(handler.libraryExists("notexistinglib"));

        assertEquals("javax.faces.resource.Script", handler
                .getRendererTypeForResourceName("testfile.js"));
    }
View Full Code Here


    public void testResourceHandler() throws Exception
    {
        ResourceHandler handler = new MockSimpleResourceHandler(_documentRoot);

        assertTrue(handler.libraryExists("testlib"));
        assertFalse(handler.libraryExists("notexistinglib"));

        assertEquals("javax.faces.resource.Script", handler
                .getRendererTypeForResourceName("testfile.js"));
    }
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.