Search in sources :

Example 1 with StreamingJsonFormat

use of org.neo4j.server.http.cypher.format.output.json.StreamingJsonFormat in project neo4j by neo4j.

the class StreamingJsonFormatTest method createOutputFormat.

@BeforeEach
void createOutputFormat() throws Exception {
    stream = new ByteArrayOutputStream();
    json = new OutputFormat(new StreamingJsonFormat().writeTo(stream).usePrettyPrinter(), new URI("http://localhost/"));
}
Also used : OutputFormat(org.neo4j.server.rest.repr.OutputFormat) ByteArrayOutputStream(java.io.ByteArrayOutputStream) URI(java.net.URI) StreamingJsonFormat(org.neo4j.server.http.cypher.format.output.json.StreamingJsonFormat) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 URI (java.net.URI)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1 StreamingJsonFormat (org.neo4j.server.http.cypher.format.output.json.StreamingJsonFormat)1 OutputFormat (org.neo4j.server.rest.repr.OutputFormat)1