use of io.servicetalk.http.api.HttpResponseFactory in project servicetalk by apple.
the class HttpResponseFactoryStatusCodeTest method testStatusCode.
@Test
void testStatusCode() {
final HttpResponseFactory httpResponseFactory = new DefaultHttpResponseFactory(INSTANCE, DEFAULT_ALLOCATOR, HTTP_1_1);
List<HttpResponseStatus> actualStatuses = buildHttpStatuses(httpResponseFactory, HttpResponseFactory.class, HttpResponse.class);
assertThat("unexpected statuses", actualStatuses, containsInAnyOrder(expectedStatuses.toArray()));
}
Aggregations