members declared in the qualifier class go first in the completion list (IDEA-13030)

This commit is contained in:
peter
2011-02-04 20:20:15 +01:00
parent 158364953b
commit 456b8d2356
5 changed files with 29 additions and 13 deletions

View File

@@ -170,4 +170,9 @@ public class NormalCompletionOrderingTest extends CompletionSortingTestCase {
assertEquals("foo.Foo", ((JavaPsiClassReferenceElement)getLookup().getCurrentItem()).getQualifiedName());
}
public void testDeclaredMembersGoFirst() throws Exception {
invokeCompletion(getBasePath() + "/" + getTestName(false) + ".java");
assertStringItems("fromThis", "overridden", "fromSuper", "equals", "getClass", "hashCode", "notify", "notifyAll", "toString", "wait", "wait", "wait");
}
}