use of com.hotels.styx.server.netty.connectors.HttpPipelineHandler.HttpResponseWriterFactory in project styx by ExpediaGroup.
the class HttpPipelineHandlerTest method responseWriterFactory.
private static HttpResponseWriterFactory responseWriterFactory(CompletableFuture<Void> future) {
HttpResponseWriterFactory writerFactory = mock(HttpResponseWriterFactory.class);
HttpResponseWriter responseWriter = mock(HttpResponseWriter.class);
when(writerFactory.create(any(ChannelHandlerContext.class))).thenReturn(responseWriter);
when(responseWriter.write(any(LiveHttpResponse.class))).thenReturn(future);
return writerFactory;
}
Aggregations