Package org.apache.commons.chain.impl

Examples of org.apache.commons.chain.impl.CatalogBase


        if (catalog == null) {
            if (log().isDebugEnabled()) {
                log().debug(messages.getMessage("filter.creatingCatalog",
                                                new Object[] { CATALOG_NAME }));
            }
            catalog = new CatalogBase();
            CatalogFactory.getInstance().addCatalog(CATALOG_NAME, catalog);
        }

        // Configure this catalog based on our default resource
        if (log().isDebugEnabled()) {
View Full Code Here



    // Test the situation where the mapped command is missing
    public void testMissingCommand() throws Exception {

        CatalogFactory.getInstance().addCatalog("remoting", new CatalogBase());
        processor.process(facesContext, "/foo/bar");
        assertEquals(response.getStatus(), HttpServletResponse.SC_NOT_FOUND);
        assertEquals(response.getMessage(), "/foo/bar");

    }
View Full Code Here


    // Test processing of a configured command
    public void testProcess() throws Exception {

        CatalogFactory.getInstance().addCatalog("remoting", new CatalogBase());
        CatalogFactory.getInstance().getCatalog("remoting").
                addCommand("foo.bar", new ChainProcessorCommand());
        processor.process(facesContext, "/foo/bar");
        assertEquals(response.getStatus(), HttpServletResponse.SC_OK);
        assertEquals("text/x-plain", response.getContentType());
View Full Code Here

TOP

Related Classes of org.apache.commons.chain.impl.CatalogBase

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.