01: package org.objectweb.celtix.systest.routing.passthrough;
02:
03: import java.util.HashMap;
04: import java.util.Map;
05:
06: import junit.framework.Test;
07: import junit.framework.TestSuite;
08:
09: import org.objectweb.celtix.systest.common.ClientServerSetupBase;
10: import org.objectweb.celtix.systest.common.ClientServerTestBase;
11: import org.objectweb.celtix.systest.jms.EmbeddedJMSBrokerLauncher;
12:
13: public class PassThroughRouterTest extends ClientServerTestBase {
14: public static Test suite() throws Exception {
15: TestSuite suite = new TestSuite();
16: suite.addTestSuite(SOAPHTTPToSOAPHTTPRouter.class);
17: suite.addTestSuite(SOAPJMSToSOAPHTTPRouter.class);
18: suite.addTestSuite(SOAPHTTPToSOAPJMSRouter.class);
19: return new ClientServerSetupBase(suite) {
20: public void startServers() throws Exception {
21: Map<String, String> props = new HashMap<String, String>();
22: if (System.getProperty("activemq.store.dir") != null) {
23: props.put("activemq.store.dir", System
24: .getProperty("activemq.store.dir"));
25: }
26: props.put("java.util.logging.config.file", System
27: .getProperty("java.util.logging.config.file"));
28:
29: assertTrue("JMS Broker did not launch correctly",
30: launchServer(EmbeddedJMSBrokerLauncher.class,
31: props, null));
32:
33: assertTrue("Remote server did not launch correctly",
34: launchServer(Server.class, false));
35:
36: assertTrue("Router did not launch correctly",
37: launchServer(PassThroughRouter.class, null,
38: new String[] { "-BUSid", "celtix-st" }));
39: }
40: };
41: }
42:
43: public static void main(String[] args) {
44: junit.textui.TestRunner.run(PassThroughRouterTest.class);
45: }
46:
47: }
|