use of org.apache.hc.core5.http.ClassicHttpResponse in project pact-jvm by DiUS.
the class V4HttpPactTest method runTest.
@Test
void runTest(MockServer mockServer) throws IOException {
ClassicHttpResponse httpResponse = (ClassicHttpResponse) Request.get(mockServer.getUrl()).execute().returnResponse();
assertThat(httpResponse.getCode(), is(200));
assertThat(new String(httpResponse.getEntity().getContent().readAllBytes()), is(equalTo("{\"responsetest\": true, \"version\": \"v3\"}")));
}
Aggregations