[OLINGO-659] Delete pretty printer from service document json

This commit is contained in:
Christian Amend 2015-07-07 15:41:58 +02:00
parent 4e405938e7
commit d18cbcceeb
2 changed files with 3 additions and 4 deletions

View File

@ -91,8 +91,7 @@ public class ODataJsonSerializer implements ODataSerializer {
try {
buffer = new CircleStreamBuffer();
gen = new JsonFactory().createGenerator(buffer.getOutputStream())
.setPrettyPrinter(new DefaultPrettyPrinter());
gen = new JsonFactory().createGenerator(buffer.getOutputStream());
new ServiceDocumentJsonSerializer(metadata, serviceRoot, isODataMetadataNone).writeServiceDocument(gen);

View File

@ -112,8 +112,8 @@ public class ODataHandlerTest {
assertNotNull(response.getContent());
String doc = IOUtils.toString(response.getContent());
assertThat(doc, containsString("\"@odata.context\" : \"$metadata\""));
assertThat(doc, containsString("\"value\" :"));
assertThat(doc, containsString("\"@odata.context\":\"$metadata\""));
assertThat(doc, containsString("\"value\":"));
}
@Test