Updating test to reflect change in classloader

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4881 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Allan Caplan
2006-12-14 14:44:12 +00:00
parent d5f48b5146
commit 2ad29feced

View File

@ -33,12 +33,14 @@ public class PMDASMClassLoaderTest extends TestCase {
assertNotNull(clazz);
Map imports = cl.getImportedClasses(className);
assertNotNull(imports);
assertEquals(7, imports.size());
System.err.println(imports);
assertEquals(8, imports.size());
assertEquals("java.util.Iterator", imports.get("Iterator"));
assertEquals("java.util.Map", imports.get("Map"));
assertEquals("java.util.Set", imports.get("Set"));
assertEquals("java.util.Map$Entry", imports.get("Entry"));
assertEquals("java.util.Map$Entry", imports.get("Map$Entry"));
assertEquals("java.util.Map$Entry", imports.get("Map$Entry"));
assertEquals("java.lang.Object", imports.get("Object"));
assertEquals("test.net.sourceforge.pmd.typeresolution.ClassWithImportInnerOnDemand", imports.get("ClassWithImportInnerOnDemand"));
}