| 1 package org.objectweb.celtix.systest.routing.bridge; 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 NormalRouterTest extends ClientServerTestBase { 14 public static Test suite() throws Exception { 15 TestSuite suite = new TestSuite(); 16 suite.addTestSuite(TestSOAPHTTPToXMLHTTPRouter.class); 18 suite.addTestSuite(TestSOAPJMSToXMLHTTPRouter.class); 19 suite.addTestSuite(TestSOAPHTTPToXMLJMSRouter.class); 20 suite.addTestSuite(TestXMLHTTPToSOAPJMSRouter.class); 21 suite.addTestSuite(TestXMLJMSToSOAPHTTPRouter.class); 22 return new ClientServerSetupBase(suite) { 23 public void startServers() throws Exception { 24 Map <String , String > props = new HashMap <String , String >(); 25 if (System.getProperty("activemq.store.dir") != null) { 26 props.put("activemq.store.dir", System.getProperty("activemq.store.dir")); 27 } 28 props.put("java.util.logging.config.file", 29 System.getProperty("java.util.logging.config.file")); 30 31 assertTrue("JMS Broker did not launch correctly", 32 launchServer(EmbeddedJMSBrokerLauncher.class, 33 props, null)); 34 assertTrue("Remote server did not launch correctly", 35 launchServer(Server.class, false)); 36 37 assertTrue("Router did not launch correctly", 38 launchServer(NormalRouter.class, 39 null, 40 new String []{"-BUSid", "celtix-switch"})); 41 } 42 }; 43 } 44 45 public static void main(String [] args) { 46 junit.textui.TestRunner.run(NormalRouterTest.class); 47 } 48 49 } 50 | Popular Tags |