Search in sources :

Example 1 with HttpClientAdapterListenerBase

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);
}
Also used : HttpClientAdapter(io.crnk.client.http.apache.HttpClientAdapter) HttpClientAdapterListenerBase(io.crnk.client.http.apache.HttpClientAdapterListenerBase) HttpClientAdapterListener(io.crnk.client.http.apache.HttpClientAdapterListener)

Aggregations

HttpClientAdapter (io.crnk.client.http.apache.HttpClientAdapter)1 HttpClientAdapterListener (io.crnk.client.http.apache.HttpClientAdapterListener)1 HttpClientAdapterListenerBase (io.crnk.client.http.apache.HttpClientAdapterListenerBase)1