1 21 22 package org.jacorb.test.notification.util; 23 24 import junit.framework.Test; 25 import junit.framework.TestCase; 26 import junit.framework.TestSuite; 27 28 import org.jacorb.notification.EventTypeWrapper; 29 import org.omg.CosNotification.EventType; 30 31 35 public class EventTypeUtilTest extends TestCase 36 { 37 public void testToString() 38 { 39 EventType et = new EventType(); 40 et.domain_name = "domain"; 41 et.type_name = "type"; 42 43 String str = EventTypeWrapper.toString(et); 44 assertNotNull(str); 45 46 assertEquals("domain/type", str); 47 } 48 49 public void testArrayToString() 50 { 51 EventType et = new EventType(); 52 et.domain_name = "domain"; 53 et.type_name = "type"; 54 55 EventType et2 = new EventType(); 56 et2.domain_name = "domain2"; 57 et2.type_name = "type2"; 58 59 String str = EventTypeWrapper.toString(new EventType[]{et, et2}); 60 61 assertNotNull(str); 62 } 63 64 public static Test suite() 65 { 66 return new TestSuite(EventTypeUtilTest.class); 67 } 68 } | Popular Tags |