summaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-01-06 18:25:28 -0800
committerGeorge Fraser <george@fivetran.com>2019-01-06 18:25:28 -0800
commitdda8cbf25f44af704098eb13147f749322369f58 (patch)
tree0e191eb88158db6d5252d91bd6275019ce47a0f5 /src/test/java
parentae21ddac94d7124e165af531b77c3a43eadfdbed (diff)
downloadjava-language-server-dda8cbf25f44af704098eb13147f749322369f58.zip
Complete indirect superclasses
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/javacs/CompletionsTest.java10
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() {