summaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-01-01 23:18:00 -0800
committerGeorge Fraser <george@fivetran.com>2019-01-01 23:18:00 -0800
commit4f1253fbefcccbc11883cf6edfcdd6e6d2399da9 (patch)
tree695b8186c93b46f76a91fc48f61626bc0324bd14 /src/test/java
parent09fe6882214bb530370c908edb9320b074bd0c05 (diff)
downloadjava-language-server-4f1253fbefcccbc11883cf6edfcdd6e6d2399da9.zip
Fixes
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/javacs/CompletionsTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/java/org/javacs/CompletionsTest.java b/src/test/java/org/javacs/CompletionsTest.java
index 4ae17a3..e00f6c4 100644
--- a/src/test/java/org/javacs/CompletionsTest.java
+++ b/src/test/java/org/javacs/CompletionsTest.java
@@ -810,6 +810,14 @@ public class CompletionsTest extends CompletionsBase {
}
@Test
+ public void stringBuilderLength() {
+ var file = "/org/javacs/example/CompleteStringBuilderLength.java";
+ var suggestions = insertText(file, 6, 12);
+
+ assertThat(suggestions, hasItem(containsString("length")));
+ }
+
+ @Test
public void implementsKeyword() {
var file = "/org/javacs/example/AutocompleteImplements.java";
var suggestions = insertText(file, 3, 34);