1 package org.jacorb.test.orb.etf; 2 3 22 23 import java.util.*; 24 25 import junit.framework.*; 26 import junit.extensions.*; 27 28 import org.jacorb.test.common.*; 29 import org.jacorb.test.*; 30 import org.jacorb.test.orb.etf.wiop.WIOPFactories; 31 32 36 public class C_WIOP_S_IIOP_WIOP extends ClientServerTestCase 37 { 38 private BasicServer server = null; 39 40 public C_WIOP_S_IIOP_WIOP (String name, ClientServerSetup setup) 41 { 42 super (name, setup); 43 } 44 45 public void setUp() throws Exception 46 { 47 WIOPFactories.transportInUse = false; 48 server = BasicServerHelper.narrow( setup.getServerObject() ); 49 } 50 51 public void tearDown() throws Exception 52 { 53 WIOPFactories.transportInUse = false; 54 } 55 56 public static Test suite() 57 { 58 TestSuite suite = new TestSuite ("Client WIOP Server IIOP WIOP"); 59 60 Properties clientProps = new Properties(); 61 clientProps.setProperty("jacorb.transport.factories", 62 "org.jacorb.test.orb.etf.wiop.WIOPFactories"); 63 64 Properties serverProps = new Properties(); 65 serverProps.setProperty("jacorb.transport.factories", 66 "org.jacorb.orb.iiop.IIOPFactories," 67 + "org.jacorb.test.orb.etf.wiop.WIOPFactories"); 68 69 ClientServerSetup setup = 70 new ClientServerSetup (suite, 71 "org.jacorb.test.orb.BasicServerImpl", 72 clientProps, serverProps); 73 74 suite.addTest (new C_WIOP_S_IIOP_WIOP ("testConnection", setup)); 75 76 return setup; 77 } 78 79 public void testConnection() 80 { 81 server.ping(); 82 assertTrue (WIOPFactories.transportInUse); 83 } 84 85 86 87 } 88 | Popular Tags |