Search in sources :

Example 1 with NakadiClient

use of org.zalando.nakadi.security.NakadiClient in project nakadi by zalando.

the class EventStreamControllerTest method writeStream.

private void writeStream() throws Exception {
    final StreamingResponseBody responseBody = createStreamingResponseBody(new NakadiClient("clientId", ""));
    final OutputStream outputStream = mock(OutputStream.class);
    responseBody.writeTo(outputStream);
}
Also used : StreamingResponseBody(org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody) ByteArrayOutputStream(java.io.ByteArrayOutputStream) OutputStream(java.io.OutputStream) NakadiClient(org.zalando.nakadi.security.NakadiClient)

Aggregations

ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 OutputStream (java.io.OutputStream)1 StreamingResponseBody (org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody)1 NakadiClient (org.zalando.nakadi.security.NakadiClient)1