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_WIOP extends ClientServerTestCase 37 { 38 private BasicServer server = null; 39 40 public C_WIOP_S_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 WIOP"); 59 60 Properties props = new Properties(); 61 props.setProperty("jacorb.transport.factories", 62 "org.jacorb.test.orb.etf.wiop.WIOPFactories"); 63 64 ClientServerSetup setup = 65 new ClientServerSetup (suite, 66 "org.jacorb.test.orb.BasicServerImpl", 67 props, props); 68 69 suite.addTest (new C_WIOP_S_WIOP ("testConnection", setup)); 70 71 return setup; 72 } 73 74 public void testConnection() 75 { 76 server.ping(); 77 assertTrue (WIOPFactories.transportInUse); 78 } 79 80 81 82 } 83 | Popular Tags |