[java] Completion autopopup: add test with property key

KTIJ-27448

GitOrigin-RevId: f13c85fdab506a12756f200c7f6bb626f684063b
This commit is contained in:
aleksandrina-streltsova
2023-12-15 11:51:48 +02:00
committed by intellij-monorepo-bot
parent d4fe2ef603
commit dfc29a78b7

View File

@@ -1849,4 +1849,20 @@ ita<caret>
}
}
void "test show popup when completing property key"() {
myFixture.createFile('PropertyKey.properties', 'foo.bar = 1')
myFixture.configureByText 'a.java', """
import org.jetbrains.annotations.PropertyKey;
public class Foo {
public static void message(@PropertyKey(resourceBundle = "PropertyKey") String key) {}
void test() {
message("fo<caret>");
}
}
"""
type 'o'
assert lookup
}
}