diff options
author | George Fraser <george@fivetran.com> | 2018-12-02 12:34:32 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2018-12-02 12:34:32 -0800 |
commit | b8b264b89fec973f9cc2927d13557bae0d5eb216 (patch) | |
tree | ef4768ec6339452c825bd6435cd5ba86e87a3984 /src/test | |
parent | 8774319bfd11b2f04a7916f5192230d2434ebeac (diff) | |
download | java-language-server-b8b264b89fec973f9cc2927d13557bae0d5eb216.zip |
Fix test
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/javacs/CompletionsTest.java | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/test/java/org/javacs/CompletionsTest.java b/src/test/java/org/javacs/CompletionsTest.java index 2f300ee..343a2b8 100644 --- a/src/test/java/org/javacs/CompletionsTest.java +++ b/src/test/java/org/javacs/CompletionsTest.java @@ -59,20 +59,6 @@ public class CompletionsTest extends CompletionsBase { } @Test - @Ignore // This has been subsumed by Javadocs - public void throwsSignature() { - var file = "/org/javacs/example/AutocompleteMember.java"; - - // Static methods - var items = items(file, 5, 14); - var suggestions = items.stream().map(i -> i.getLabel()).collect(Collectors.toSet()); - var details = items.stream().map(i -> i.getDetail()).collect(Collectors.toSet()); - - assertThat(suggestions, hasItems("testMethods")); - assertThat(details, hasItems("String () throws Exception")); - } - - @Test public void fieldFromInitBlock() { var file = "/org/javacs/example/AutocompleteMembers.java"; @@ -415,7 +401,6 @@ public class CompletionsTest extends CompletionsBase { // Static methods var items = items(file, 8, 17); var suggestions = items.stream().map(i -> i.getLabel()).collect(Collectors.toSet()); - var details = items.stream().map(i -> i.getDetail()).collect(Collectors.toSet()); assertThat(suggestions, hasItems("add", "addAll")); } @@ -738,9 +723,9 @@ public class CompletionsTest extends CompletionsBase { var file = "/org/javacs/example/OverloadedMethod.java"; var detail = detail(file, 9, 13); - assertThat("suggests empty method", detail, hasItem("overloaded()")); - assertThat("suggests int method", detail, hasItem("overloaded(i)")); - assertThat("suggests string method", detail, hasItem("overloaded(s)")); + assertThat("suggests empty method", detail, hasItem("void overloaded()")); + assertThat("suggests int method", detail, hasItem("void overloaded(i)")); + assertThat("suggests string method", detail, hasItem("void overloaded(s)")); } @Test |