[OLINGO-659] Delete pretty printer from service document json
This commit is contained in:
parent
4e405938e7
commit
d18cbcceeb
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue