mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
make chained call completion work with names like Assert or Arrays
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
{
|
||||
Assert.<caret>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
+7
@@ -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']
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user