provide types for Java fields

This commit is contained in:
Dmitry Jemerov
2011-04-13 18:36:37 +02:00
parent c0cb682511
commit 2bf935862d
3 changed files with 23 additions and 7 deletions

View File

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