make chained call completion work with names like Assert or Arrays

This commit is contained in:
peter
2012-02-21 19:20:14 +01:00
parent 6dcb6d64b0
commit 13e2e96658
5 changed files with 26 additions and 5 deletions
@@ -0,0 +1,5 @@
class Foo {
{
Assert.<caret>
}
}
@@ -989,7 +989,7 @@ class Foo {
myFixture.configureByText "a.java", "class Foo {{ <caret> }}"
type 'Arrays.'
myFixture.checkResult "class Foo {{ Arrays.<caret> }}"
assert !lookup
assert 'Arrays.asList' in myFixture.lookupElementStrings
}
@@ -1290,4 +1290,11 @@ public class ListUtils {
checkResult()
}
public void testAllAssertClassesMethods() {
myFixture.addClass 'package foo; public class Assert { public static void foo() {} }'
myFixture.addClass 'package bar; public class Assert { public static void bar() {} }'
configure()
assert myFixture.lookupElementStrings == ['Assert.bar', 'Assert.foo']
}
}