Examples of ESBConfigUtil


Examples of org.jboss.soa.esb.testutils.ESBConfigUtil

        assertTrue(MockScheduledEventListener.onSchedule);
        assertTrue(MockScheduledEventListener.uninitialised);
    }

    private void runTestConfig(String configName, long upTime) throws ParamRepositoryException, ConfigurationException, ManagedLifecycleException, SAXException, InterruptedException {
        ESBConfigUtil configUtil = null;
        try {
            configUtil = new ESBConfigUtil(getClass().getResourceAsStream(configName));
        } catch (IOException e) {
            fail(e.getMessage());
        }

        configUtil.startController();
        Thread.sleep(upTime);
        configUtil.stopController();
    }
View Full Code Here

Examples of org.jboss.soa.esb.testutils.ESBConfigUtil

        assertTrue("simple-schedule-listener1 fired", composer1.composedMessages.size() > 0);
        assertTrue("simple-schedule-listener2 fired", composer2.composedMessages.size() > 0);
    }

    private void runTestConfig(String configName, long upTime) throws Exception {
        ESBConfigUtil configUtil = new ESBConfigUtil(getClass().getResourceAsStream(configName));

        configUtil.startController();
        Thread.sleep(upTime);
        configUtil.stopController();
    }
View Full Code Here

Examples of org.jboss.soa.esb.testutils.ESBConfigUtil

* @author <a href="mailto:tom.fennelly@jboss.com">tom.fennelly@jboss.com</a>
*/
public class ConfigUtilTest extends TestCase {

    public void test_esbToJBPM_Mapping() throws IOException, SAXException, ConfigurationException {
        ESBConfigUtil configUtil = new ESBConfigUtil(getClass().getResourceAsStream("mappingconfig-01.xml"));
        ConfigTree actionConfig = configUtil.getActionConfig("InVM-0", "action1");

        List<Mapping> mappingConfig = ConfigUtil.getMappingConfig(actionConfig);
        assertEquals("[Mapping[ esb=eVar1, bpm=counter, isProcessScope=null, defaultValue=null ], Mapping[ esb=BODY_CONTENT, bpm=theBody, isProcessScope=null, defaultValue=null ]]", mappingConfig.toString());
    }
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.