1 package org.objectweb.celtix.systest.routing.passthrough; 2 3 import java.util.HashMap ; 4 import java.util.Map ; 5 6 import junit.framework.Test; 7 import junit.framework.TestSuite; 8 9 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.getProperty("activemq.store.dir")); 24 } 25 props.put("java.util.logging.config.file", 26 System.getProperty("java.util.logging.config.file")); 27 28 assertTrue("JMS Broker did not launch correctly", 29 launchServer(EmbeddedJMSBrokerLauncher.class, 30 props, null)); 31 32 assertTrue("Remote server did not launch correctly", 33 launchServer(Server.class, false)); 34 35 assertTrue("Router did not launch correctly", 36 launchServer(PassThroughRouter.class, 37 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 } 48 | Popular Tags |