diff options
author | George Fraser <george@fivetran.com> | 2019-01-06 18:25:28 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2019-01-06 18:25:28 -0800 |
commit | dda8cbf25f44af704098eb13147f749322369f58 (patch) | |
tree | 0e191eb88158db6d5252d91bd6275019ce47a0f5 /src/test/java | |
parent | ae21ddac94d7124e165af531b77c3a43eadfdbed (diff) | |
download | java-language-server-dda8cbf25f44af704098eb13147f749322369f58.zip |
Complete indirect superclasses
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/org/javacs/CompletionsTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/java/org/javacs/CompletionsTest.java b/src/test/java/org/javacs/CompletionsTest.java index e00f6c4..4cef1fb 100644 --- a/src/test/java/org/javacs/CompletionsTest.java +++ b/src/test/java/org/javacs/CompletionsTest.java @@ -306,6 +306,16 @@ public class CompletionsTest extends CompletionsBase { assertThat(suggestions, hasItems("length")); } + @Test + public void indirectSuper() { + var file = "/org/javacs/example/CompleteIndirectSuper.java"; + + // a.? + var suggestions = insertText(file, 5, 14); + + assertThat(suggestions, hasItems("selfMethod", "super1Method", "super2Method")); + } + @Ignore // We are now managing imports with FixImports @Test public void addImport() { |