1 package org.jacorb.test.idl; 2 3 22 23 import junit.framework.*; 24 import org.jacorb.test.common.*; 25 26 32 33 public class TypeDefTest extends TestCase 34 { 35 public TypeDefTest (String name) 36 { 37 super (name); 38 } 39 40 41 public static Test suite () 42 { 43 TestSuite suite = new TestSuite ("TypeDef Tests"); 44 suite.addTest (new TypeDefTest ("testTypeDefParseGood")); 45 46 return suite; 47 } 48 49 50 52 public void testTypeDefParseGood () 53 { 54 String file[] = new String [3]; 55 file[0] = "-d"; 56 file[1] = TestUtils.testHome() + "/src/generated"; 57 file[2] = TestUtils.testHome() + "/idl/compiler/succeed/TypeDef.idl"; 58 59 assertTrue ("Compiled TypeDef.idl", org.jacorb.idl.parser.compileAndHandle (file)); 60 } 61 } 62 | Popular Tags |