use of io.crnk.client.http.apache.HttpClientAdapterListenerBase in project crnk-framework by crnk-project.
the class ApacheHttpClientTest method setupClient.
@Override
protected void setupClient(CrnkClient client) {
super.setupClient(client);
HttpClientAdapter adapter = HttpClientAdapter.newInstance();
adapter.setReceiveTimeout(30000, TimeUnit.MILLISECONDS);
listener = Mockito.mock(HttpClientAdapterListener.class);
adapter.addListener(listener);
adapter.addListener(new HttpClientAdapterListenerBase());
client.setHttpAdapter(adapter);
}
Aggregations