mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
a test for skipping lifted items
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class Foo {
|
||||
{
|
||||
hashCo<caret>x
|
||||
}
|
||||
|
||||
int hashCodeMine() {}
|
||||
|
||||
}
|
||||
+4
@@ -196,6 +196,10 @@ public class NormalCompletionOrderingTest extends CompletionSortingTestCase {
|
||||
assertEquals("Baaaaaaar", ((JavaPsiClassReferenceElement)lookup.getItems().get(1)).getQualifiedName());
|
||||
}
|
||||
|
||||
public void _testSkipLifted() {
|
||||
checkPreferredItems(1, "hashCode", "hashCodeMine")
|
||||
}
|
||||
|
||||
public void testDispreferInnerClasses() {
|
||||
checkPreferredItems(0); //no chosen items
|
||||
assertFalse(getLookup().getItems().get(0).getObject() instanceof PsiClass);
|
||||
|
||||
Reference in New Issue
Block a user