1 21 22 package org.jacorb.test.notification; 23 24 import junit.framework.Test; 25 import junit.framework.TestCase; 26 import junit.framework.TestSuite; 27 28 import org.omg.CORBA.ORB ; 29 import org.omg.PortableServer.POA ; 30 import org.omg.PortableServer.POAHelper ; 31 32 36 public class BasicTest extends TestCase 37 { 38 public void test_Is_JacORB_POA_a_POA() throws Exception 39 { 40 ORB orb = ORB.init(new String [0], null); 41 POA poa = POAHelper.narrow(orb.resolve_initial_references("RootPOA")); 42 assertTrue(poa._is_a(POAHelper.id())); 43 } 44 45 public static Test suite() throws Exception 46 { 47 return new TestSuite(BasicTest.class); 48 } 49 } 50 | Popular Tags |