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 InterfaceTest extends TestCase 34 { 35 public InterfaceTest (String name) 36 { 37 super (name); 38 } 39 40 41 public static Test suite () 42 { 43 TestSuite suite = new TestSuite ("Interface Tests"); 44 suite.addTest (new InterfaceTest ("testInterfaceParseGood")); 45 46 return suite; 47 } 48 49 50 52 public void testInterfaceParseGood () 53 { 54 String file[] = new String [5]; 55 file[0] = "-i2jpackage"; 56 file[1] = "Reflective:org.omg.Reflective"; 57 file[2] = "-d"; 58 file[3] = TestUtils.testHome() + "/src/generated"; 59 file[4] = TestUtils.testHome() + "/idl/compiler/succeed/Interface.idl"; 60 assertTrue ("Compiled Interface.idl", org.jacorb.idl.parser.compileAndHandle(file)); 61 } 62 } 63 | Popular Tags |