Author: scabanovich
Date: 2012-05-10 20:46:14 -0400 (Thu, 10 May 2012)
New Revision: 40939
Added:
trunk/common/tests/org.jboss.tools.common.el.core.test/projects/JavaProject2/src/test/TestD.java
Modified:
trunk/common/tests/org.jboss.tools.common.el.core.test/src/org/jboss/tools/common/el/core/test/resolver/TypeInfoCollectorTest.java
Log:
JBIDE-11837
https://issues.jboss.org/browse/JBIDE-11837
Test is added.
Added:
trunk/common/tests/org.jboss.tools.common.el.core.test/projects/JavaProject2/src/test/TestD.java
===================================================================
---
trunk/common/tests/org.jboss.tools.common.el.core.test/projects/JavaProject2/src/test/TestD.java
(rev 0)
+++
trunk/common/tests/org.jboss.tools.common.el.core.test/projects/JavaProject2/src/test/TestD.java 2012-05-11
00:46:14 UTC (rev 40939)
@@ -0,0 +1,5 @@
+package test;
+
+public class TestD implements MissingInterface {
+
+}
\ No newline at end of file
Property changes on:
trunk/common/tests/org.jboss.tools.common.el.core.test/projects/JavaProject2/src/test/TestD.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified:
trunk/common/tests/org.jboss.tools.common.el.core.test/src/org/jboss/tools/common/el/core/test/resolver/TypeInfoCollectorTest.java
===================================================================
---
trunk/common/tests/org.jboss.tools.common.el.core.test/src/org/jboss/tools/common/el/core/test/resolver/TypeInfoCollectorTest.java 2012-05-11
00:45:32 UTC (rev 40938)
+++
trunk/common/tests/org.jboss.tools.common.el.core.test/src/org/jboss/tools/common/el/core/test/resolver/TypeInfoCollectorTest.java 2012-05-11
00:46:14 UTC (rev 40939)
@@ -95,6 +95,16 @@
}
}
+ public void testMissingInterface() throws CoreException {
+ IJavaProject jp = JavaCore.create(project2);
+ String className = "test.TestD";
+ IType bean = jp.findType(className);
+ TypeInfoCollector.TypeInfo typeInfo = new TypeInfoCollector.TypeInfo(bean, null,
false);
+ TypeInfoCollector collector = typeInfo.getTypeCollector(false, false);
+ //NullPointerException is expected in TypeInfoCollector.initSuperinterfaces()
+ assertNotNull(collector);
+ }
+
private MemberInfo getMethod(TypeInfoCollector collector, String name) {
collector.collectInfo();
List<MemberInfo> mts = collector.getMethods();