IDEA-89114 Unsuitable completion proposals in annotation attribute value

This commit is contained in:
peter
2012-07-23 15:45:32 +02:00
parent 112fa67418
commit 65643aa190
3 changed files with 24 additions and 3 deletions
@@ -0,0 +1,3 @@
public class Util {
@Foo(val=<caret>) void foo(String[] args) { }
}
@@ -270,6 +270,20 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
assert "B" in myFixture.lookupElementStrings
}
public void testAnnoParameterValue() throws Exception {
configure()
def strings = myFixture.lookupElementStrings
assert 'AssertionError' in strings
assert !('enum' in strings)
assert !('final' in strings)
assert !('equals' in strings)
assert !('new' in strings)
assert !('null' in strings)
assert !('public' in strings)
assert !('super' in strings)
assert !('null' in strings)
}
public void testAfterInstanceof() throws Exception {
configureByFile("AfterInstanceof.java");
assert "A" in myFixture.lookupElementStrings