Search in sources :

Example 1 with BlockingStreamingHttpResponseFactory

use of io.servicetalk.http.api.BlockingStreamingHttpResponseFactory in project servicetalk by apple.

the class HttpResponseFactoryStatusCodeTest method testBlockingStatusCode.

@Test
void testBlockingStatusCode() {
    final BlockingStreamingHttpResponseFactory blockingStreamingHttpResponseFactory = new DefaultBlockingStreamingHttpResponseFactory(INSTANCE, DEFAULT_ALLOCATOR, HTTP_1_1);
    List<HttpResponseStatus> actualStatuses = buildHttpStatuses(blockingStreamingHttpResponseFactory, BlockingStreamingHttpResponseFactory.class, BlockingStreamingHttpResponse.class);
    assertThat("unexpected statuses", actualStatuses, containsInAnyOrder(expectedStatuses.toArray()));
}
Also used : BlockingStreamingHttpResponseFactory(io.servicetalk.http.api.BlockingStreamingHttpResponseFactory) HttpResponseStatus(io.servicetalk.http.api.HttpResponseStatus) Test(org.junit.jupiter.api.Test)

Aggregations

BlockingStreamingHttpResponseFactory (io.servicetalk.http.api.BlockingStreamingHttpResponseFactory)1 HttpResponseStatus (io.servicetalk.http.api.HttpResponseStatus)1 Test (org.junit.jupiter.api.Test)1