resolve Java methods in a Python class inherited from a Java class

This commit is contained in:
Dmitry Jemerov
2011-04-13 18:23:30 +02:00
parent 8e8e2ab055
commit c0cb682511
4 changed files with 35 additions and 4 deletions

View File

@@ -58,6 +58,12 @@ public class PyToJavaResolveTest extends ResolveTestCase {
Assert.assertEquals("java.lang", ((PsiPackage) target).getQualifiedName());
}
public void testSuperMethod() throws Exception {
PsiElement target = resolve();
Assert.assertTrue(target instanceof PsiMethod);
Assert.assertEquals("size", ((PsiMethod) target).getName());
}
@Override
protected String getTestDataPath() {
return PythonTestUtil.getTestDataPath() + "/resolve/pyToJava/";