diff options
author | George Fraser <george@fivetran.com> | 2018-12-30 23:53:50 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2018-12-30 23:53:50 -0800 |
commit | c5ed7d5755568189a09472d52d2dfe88c79bf70a (patch) | |
tree | 69f846b6301aba1ddb5fa8909eb6a8bd4a7b618a /src/test/java | |
parent | bb0a7dd680661f01a8bb626177e3c0fe3a1e8d6a (diff) | |
download | java-language-server-c5ed7d5755568189a09472d52d2dfe88c79bf70a.zip |
Fixes
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/org/javacs/CompletionsTest.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/java/org/javacs/CompletionsTest.java b/src/test/java/org/javacs/CompletionsTest.java index 37e46f4..5469dc7 100644 --- a/src/test/java/org/javacs/CompletionsTest.java +++ b/src/test/java/org/javacs/CompletionsTest.java @@ -62,6 +62,28 @@ public class CompletionsTest extends CompletionsBase { } @Test + public void enumMapMembers() { + var suggestions = insertTemplate("/org/javacs/example/CompleteEnumMap.java", 9, 13); + assertThat( + suggestions, + hasItems( + "clear", + "clone", + "containsKey", + "containsValue", + "entrySet", + "equals", + "get", + "hashCode", + "keySet", + "put", + "putAll", + "remove", + "size", + "values")); + } + + @Test public void fieldFromInitBlock() { var file = "/org/javacs/example/AutocompleteMembers.java"; |