test nullable return types are read from .class files

This commit is contained in:
Stepan Koltsov
2011-12-06 23:25:26 +04:00
parent a9d1cea965
commit bf54dc5453
4 changed files with 33 additions and 4 deletions
@@ -105,8 +105,6 @@ public class ReadClassDataTest extends UsefulTestCase {
@Override
public void runTest() throws Exception {
if (true) return;
createMockCoreEnvironment();
LanguageASTFactory.INSTANCE.addExplicitExtension(JavaLanguage.INSTANCE, new JavaASTFactory());
@@ -184,7 +182,8 @@ public class ReadClassDataTest extends UsefulTestCase {
for (int i = 0; i < a.getValueParameters().size(); ++i) {
compareAnything(ValueParameterDescriptor.class, a.getValueParameters().get(i), b.getValueParameters().get(i));
}
System.out.println("function " + a.getName());
Assert.assertEquals(a.getReturnType(), b.getReturnType());
System.out.println("fun " + a.getName() + "(...): " + a.getReturnType());
}
private <T> void compareAnything(Class<T> clazz, T a, T b) {