1 23 24 package com.rift.coad.lib.thirdparty.ant; 25 26 import junit.framework.*; 27 import java.io.File ; 28 import org.apache.tools.ant.Project; 29 import org.apache.tools.ant.Target; 30 import org.apache.tools.ant.taskdefs.Rmic; 31 import org.apache.tools.ant.types.Path; 32 import com.rift.coad.lib.common.RandomGuid; 33 import com.rift.coad.lib.common.FileUtil; 34 35 39 public class RMICTest extends TestCase { 40 41 public RMICTest(String testName) { 42 super(testName); 43 } 44 45 protected void setUp() throws Exception { 46 } 47 48 protected void tearDown() throws Exception { 49 } 50 51 public static Test suite() { 52 TestSuite suite = new TestSuite(RMICTest.class); 53 54 return suite; 55 } 56 57 60 public void testParse() throws Exception { 61 System.out.println("parse"); 62 String tmpDir = System.getProperty("test.tmp.dir"); 63 File destDir = new File (tmpDir,RandomGuid.getInstance().getGuid()); 64 destDir.mkdir(); 65 File testDir = new File (System.getProperty("dist.jar")); 66 File [] classPath = new File [] { testDir }; 67 68 RMIC instance = new RMIC(classPath, 69 "com.rift.coad.lib.thirdparty.ant.rmic.RMIClass",destDir); 70 71 instance.parse(); 72 73 } 74 75 } 76 | Popular Tags |