Package org.jboss.soa.esb.actions.cbr

Examples of org.jboss.soa.esb.actions.cbr.RegexRouter$RegexRoutingRule


    }

    private void test(String configName) throws MessageRouterException, IOException, SAXException, ConfigurationException {
        ESBConfigUtil esbConfig = new ESBConfigUtil(getClass().getResourceAsStream("config.xml"));
        ConfigTree configTree = esbConfig.getActionConfig("null-listener", configName);
        RegexRouter router = new RegexRouter();

        router.setConfigTree(configTree);

        Map<String, RoutingRule> map = router.getRoutingMap();
        assertEquals(3, map.size());
        assertNotNull(map.get("scat-red"));
        assertNotNull(map.get("scat-green"));
        assertNotNull(map.get("scat-blue"));
    }
View Full Code Here


    }

    public void test_routing(Message message, List objectLists) throws IOException, SAXException, ConfigurationException, MessageRouterException {
        ESBConfigUtil esbConfig = new ESBConfigUtil(getClass().getResourceAsStream("config.xml"));
        ConfigTree configTree = esbConfig.getActionConfig("null-listener", "3");
        RegexRouter router = new RegexRouter();

        router.setConfigTree(configTree);

        List<String> destinations = router.route(null, false, message, objectLists);
        assertEquals("[scat-green]", destinations.toString());
    }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.actions.cbr.RegexRouter$RegexRoutingRule

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.