diff options
Diffstat (limited to 'java/java-tests/testSrc/com/intellij/codeInsight/completion/JavaAutoPopupTest.groovy')
-rw-r--r-- | java/java-tests/testSrc/com/intellij/codeInsight/completion/JavaAutoPopupTest.groovy | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/completion/JavaAutoPopupTest.groovy b/java/java-tests/testSrc/com/intellij/codeInsight/completion/JavaAutoPopupTest.groovy index 669070815bce..d626cbaf6080 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/completion/JavaAutoPopupTest.groovy +++ b/java/java-tests/testSrc/com/intellij/codeInsight/completion/JavaAutoPopupTest.groovy @@ -1,5 +1,5 @@ /* - * Copyright 2000-2010 JetBrains s.r.o. + * Copyright 2000-2013 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -83,6 +83,20 @@ class JavaAutoPopupTest extends CompletionAutoPopupTestCase { assert lookup.focused } + public void testAfterDblColon() { + myFixture.configureByText("a.java", """ + class Foo { + void foo() { + Runnable::<caret> + } + } + """) + type('r') + def les = myFixture.lookupElementStrings + assert 'run' in les + assert lookup.focused + } + def assertContains(String... items) { myFixture.assertPreferredCompletionItems(0, items) } |