diff options
author | George Fraser <george@fivetran.com> | 2019-03-31 10:48:22 -0700 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2019-03-31 10:48:22 -0700 |
commit | f00234f1bc0949e21527c189ce7ceb33438ec932 (patch) | |
tree | 8fc1321a7ed4f63fb979f75f4eefbb74f0e3e531 /src/test | |
parent | 46e48e7dce071d5cf592f1a15e4a3122f93735b4 (diff) | |
download | java-language-server-f00234f1bc0949e21527c189ce7ceb33438ec932.zip |
Leave out optional fields
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/javacs/lsp/LspTest.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/java/org/javacs/lsp/LspTest.java b/src/test/java/org/javacs/lsp/LspTest.java index 61fc2f3..93020f8 100644 --- a/src/test/java/org/javacs/lsp/LspTest.java +++ b/src/test/java/org/javacs/lsp/LspTest.java @@ -77,4 +77,12 @@ public class LspTest { assertThat(parse.method, equalTo("initialize")); assertThat(parse.params, equalTo(new JsonObject())); } + + @Test + public void excludeDefaults() { + var item = new CompletionItem(); + var text = LSP.toJson(item); + + assertThat(text, equalTo("{\"kind\":0}")); + } } |