diff options
author | George Fraser <george@fivetran.com> | 2018-09-21 23:51:01 -0700 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2018-09-21 23:51:01 -0700 |
commit | c856b581a05b35c063c4fedfba9a09aaab00bfc1 (patch) | |
tree | 3766280846af3035700cb875be3571f1398e2079 /src/test | |
parent | ee3968ce8b7af1a7f90b6a8fce20e702cd08158c (diff) | |
download | java-language-server-c856b581a05b35c063c4fedfba9a09aaab00bfc1.zip |
Complete implements
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/javacs/CompletionsTest.java | 8 | ||||
-rw-r--r-- | src/test/test-project/workspace/src/org/javacs/example/AutocompleteImplements.java | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/test/java/org/javacs/CompletionsTest.java b/src/test/java/org/javacs/CompletionsTest.java index c8f01ca..12e7010 100644 --- a/src/test/java/org/javacs/CompletionsTest.java +++ b/src/test/java/org/javacs/CompletionsTest.java @@ -784,4 +784,12 @@ public class CompletionsTest extends CompletionsBase { assertThat(suggestions, hasItem(containsString("void superMethod() {"))); } + + @Test + public void implementsKeyword() { + var file = "/org/javacs/example/AutocompleteImplements.java"; + var suggestions = insertText(file, 3, 34); + + assertThat(suggestions, hasItem(containsString("implements"))); + } } diff --git a/src/test/test-project/workspace/src/org/javacs/example/AutocompleteImplements.java b/src/test/test-project/workspace/src/org/javacs/example/AutocompleteImplements.java new file mode 100644 index 0000000..9c8b2c0 --- /dev/null +++ b/src/test/test-project/workspace/src/org/javacs/example/AutocompleteImplements.java @@ -0,0 +1,3 @@ +package org.javacs.example; + +class AutocompleteImplements impl
\ No newline at end of file |