KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > dynaop > util > ClassesTest


1 package dynaop.util;
2
3 import junit.framework.TestCase;
4
5 /**
6  *
7  *
8  * @author Bob Lee (crazybob@crazybob.org)
9  */

10 public class ClassesTest extends TestCase {
11
12     public void testCommonLoader() {
13         ClassLoader JavaDoc l = Classes.commonLoader(new Class JavaDoc[] { String JavaDoc.class });
14         assertEquals(Classes.getClassLoader(String JavaDoc.class), l);
15         
16         l = Classes.commonLoader(new Class JavaDoc[] { String JavaDoc.class, Classes.class });
17         assertEquals(Classes.getClassLoader(Classes.class), l);
18     }
19 }
20
Popular Tags