use of org.folio.rest.tools.client.interfaces.HttpClientInterface in project raml-module-builder by folio-org.
the class HTTPMockTest method test.
@Test
public void test() {
HttpClientInterface client = HttpClientFactory.getHttpClient("localhost", 8080, "zxc");
try {
CompletableFuture<Response> cf = client.request("auth_test2");
System.out.println("-------------------------------------->" + cf.get().getBody());
assertEquals("1", cf.get().getBody().getString("id"));
} catch (Exception e) {
assertTrue(false);
e.printStackTrace();
}
}
Aggregations