PT 156967558 - Replace ObjectMapper with Gson in Bosh LS

This commit is contained in:
nsingh
2018-06-05 15:26:55 -07:00
parent ac145815e3
commit aa2e89f0dd
12 changed files with 99 additions and 39 deletions

View File

@@ -17,6 +17,7 @@ import static org.mockito.Mockito.when;
import static org.springframework.ide.vscode.languageserver.testharness.Editor.DEDENTED_COMPLETION;
import static org.springframework.ide.vscode.languageserver.testharness.Editor.PLAIN_COMPLETION;
import static org.springframework.ide.vscode.languageserver.testharness.Editor.SNIPPET_COMPLETION;
import static org.springframework.ide.vscode.languageserver.testharness.LanguageServerHarness.getDocString;
import static org.springframework.ide.vscode.languageserver.testharness.TestAsserts.assertContains;
import java.io.IOException;
@@ -46,8 +47,6 @@ import org.springframework.ide.vscode.languageserver.testharness.LanguageServerH
import com.google.common.collect.ImmutableMultiset;
import com.google.common.collect.ImmutableSet;
import static org.springframework.ide.vscode.languageserver.testharness.LanguageServerHarness.*;
public class BoshEditorTest {
LanguageServerHarness<BoshLanguageServer> harness;
@@ -1155,7 +1154,7 @@ public class BoshEditorTest {
return new BoshCommandStemcellsProvider(cliConfig) {
@Override
protected String executeCommand(ExternalCommand command) throws Exception {
String rows = mapper.writeValueAsString(stemcellData);
String rows = gson.toJson(stemcellData);
return "{\n" +
" \"Tables\": [\n" +
" {\n" +
@@ -1324,7 +1323,7 @@ public class BoshEditorTest {
return new BoshCommandReleasesProvider(cliConfig) {
@Override
protected String executeCommand(ExternalCommand command) throws Exception {
String rows = mapper.writeValueAsString(stemcellData);
String rows = gson.toJson(stemcellData);
return "{\n" +
" \"Tables\": [\n" +
" {\n" +