assert ReadClassDataTest works with non-empty set

This commit is contained in:
Stepan Koltsov
2012-01-13 03:55:11 +04:00
parent a8137d1a56
commit a8ff7e5aaf
@@ -97,6 +97,8 @@ public class ReadClassDataTest extends TestCaseWithTmpdir {
Assert.assertEquals(nsa.getName(), nsb.getName());
System.out.println("namespace " + nsa.getName());
Assert.assertTrue(!nsa.getMemberScope().getAllDescriptors().isEmpty());
Set<String> classifierNames = new HashSet<String>();
Set<String> propertyNames = new HashSet<String>();
Set<String> functionNames = new HashSet<String>();
@@ -112,7 +114,7 @@ public class ReadClassDataTest extends TestCaseWithTmpdir {
throw new AssertionError("unknown member: " + ad);
}
}
for (String name : classifierNames) {
ClassifierDescriptor ca = nsa.getMemberScope().getClassifier(name);
ClassifierDescriptor cb = nsb.getMemberScope().getClassifier(name);