Package org.objectweb.celtix.systest.routing.passthrough

Source Code of org.objectweb.celtix.systest.routing.passthrough.PassThroughRouterTest

package org.objectweb.celtix.systest.routing.passthrough;

import java.util.HashMap;
import java.util.Map;

import junit.framework.Test;
import junit.framework.TestSuite;

import org.objectweb.celtix.systest.common.ClientServerSetupBase;
import org.objectweb.celtix.systest.common.ClientServerTestBase;
import org.objectweb.celtix.systest.jms.EmbeddedJMSBrokerLauncher;

public class PassThroughRouterTest extends ClientServerTestBase {
    public static Test suite() throws Exception {
        TestSuite suite = new TestSuite();
        suite.addTestSuite(SOAPHTTPToSOAPHTTPRouter.class);
        suite.addTestSuite(SOAPJMSToSOAPHTTPRouter.class);
        suite.addTestSuite(SOAPHTTPToSOAPJMSRouter.class);
        return new ClientServerSetupBase(suite) {
            public void startServers() throws Exception {
                Map<String, String> props = new HashMap<String, String>();               
                if (System.getProperty("activemq.store.dir") != null) {
                    props.put("activemq.store.dir", System.getProperty("activemq.store.dir"));
                }
                props.put("java.util.logging.config.file",
                          System.getProperty("java.util.logging.config.file"));

                assertTrue("JMS Broker did not launch correctly",
                           launchServer(EmbeddedJMSBrokerLauncher.class,
                                        props, null));
               
                assertTrue("Remote server did not launch correctly",
                           launchServer(Server.class, false));

                assertTrue("Router did not launch correctly",
                           launchServer(PassThroughRouter.class,
                                        null,
                                        new String[]{"-BUSid", "celtix-st"}));
            }
        };
    }

    public static void main(String[] args) {
        junit.textui.TestRunner.run(PassThroughRouterTest.class);
    }

}
TOP

Related Classes of org.objectweb.celtix.systest.routing.passthrough.PassThroughRouterTest

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.