Package org.jboss.seam.faces.projectstage

Examples of org.jboss.seam.faces.projectstage.WebXmlContextParameterParser


        InputStream webXmlStream = Thread.currentThread().getContextClassLoader()
                .getResourceAsStream("org/jboss/seam/faces/test/server/projectstage/parser-test-web.xml");
        assertNotNull("Cannot find web.xml for test", webXmlStream);

        // parse it
        WebXmlContextParameterParser parser = new WebXmlContextParameterParser();
        parser.parse(webXmlStream);

        // validate result
        assertEquals(null, parser.getContextParameter("does not exist"));
        assertEquals("23", parser.getContextParameter("org.example.SOME_PARAMETER"));
        assertEquals("Development", parser.getContextParameter("javax.faces.PROJECT_STAGE"));

    }
View Full Code Here

TOP

Related Classes of org.jboss.seam.faces.projectstage.WebXmlContextParameterParser

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.