use of com.yahoo.jdisc.test.NonWorkingContentChannel in project vespa by vespa-engine.
the class FutureResponseTestCase method requireThatResponseContentIsReturnedToCaller.
@Test
public void requireThatResponseContentIsReturnedToCaller() throws Exception {
ContentChannel content = new NonWorkingContentChannel();
FutureResponse future = new FutureResponse(content);
Response response = new Response(Response.Status.OK);
assertSame(content, future.handleResponse(response));
}
Aggregations