1 23 24 package com.rift.coad.lib.deployment; 25 26 import junit.framework.*; 27 import java.io.*; 28 import java.io.BufferedReader ; 29 import java.io.InputStreamReader ; 30 import java.io.InputStream ; 31 import java.net.URL ; 32 import java.net.URLClassLoader ; 33 import com.rift.coad.lib.common.ResourceReader; 34 35 36 37 41 public class DeploymentLoaderTest extends TestCase { 42 43 public DeploymentLoaderTest(String testName) { 44 super(testName); 45 } 46 47 protected void setUp() throws Exception { 48 } 49 50 protected void tearDown() throws Exception { 51 } 52 53 public static Test suite() { 54 TestSuite suite = new TestSuite(DeploymentLoaderTest.class); 55 56 return suite; 57 } 58 59 62 public void testInitLoader() throws Exception { 63 System.out.println("testClassLoader"); 64 65 DeploymentLoader instance = new DeploymentLoader( 67 new java.io.File (System.getProperty("test.jar"))); 68 69 com.rift.coad.lib.deployment.DeploymentInfo info = 71 instance.getDeploymentInfo(); 72 if (!info.getName().equals("CoadunationTest")) { 73 fail("The name of the coadunation entry is invalid"); 74 } 75 } 76 77 } 78 | Popular Tags |