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()));
}
Aggregations