Search in sources :

Example 1 with HttpResponseFactory

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()));
}
Also used : HttpResponseStatus(io.servicetalk.http.api.HttpResponseStatus) BlockingStreamingHttpResponseFactory(io.servicetalk.http.api.BlockingStreamingHttpResponseFactory) HttpResponseFactory(io.servicetalk.http.api.HttpResponseFactory) StreamingHttpResponseFactory(io.servicetalk.http.api.StreamingHttpResponseFactory) Test(org.junit.jupiter.api.Test)

Aggregations

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