Search in sources :

Example 1 with NonWorkingContentChannel

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));
}
Also used : Response(com.yahoo.jdisc.Response) NonWorkingContentChannel(com.yahoo.jdisc.test.NonWorkingContentChannel) NonWorkingContentChannel(com.yahoo.jdisc.test.NonWorkingContentChannel) Test(org.junit.Test)

Aggregations

Response (com.yahoo.jdisc.Response)1 NonWorkingContentChannel (com.yahoo.jdisc.test.NonWorkingContentChannel)1 Test (org.junit.Test)1