@Test public void factoryReturnsObject() { assertNotNull(factory.makeHttpClient()); }
@Override public CloseableHttpClient makeHttpClient() { HttpClientBuilder httpClientBuilder = HttpClients.custom().useSystemProperties() .setConnectionReuseStrategy(new NoConnectionReuseStrategy()) .setRedirectStrategy(new LaxRedirectStrategy()); maybeSetProxy(httpClientBuilder); return httpClientBuilder.build(); }
HttpClientFactoryImpl implements HttpClientFactory { @Override public CloseableHttpClient makeHttpClient() { HttpClientBuilder httpClientBuilder = HttpClients.custom().useSystemProperties() .setConnectionReuseStrategy(new NoConnectionReuseStrategy()) .setRedirectStrategy(new LaxRedirectStrategy()); maybeSetProxy(httpClientBuilder); return httpClientBuilder.build(); } }
HttpClientFactoryImpl implements HttpClientFactory { @Override public CloseableHttpClient makeHttpClient() { HttpClientBuilder httpClientBuilder = HttpClients.custom().useSystemProperties() .setConnectionReuseStrategy(new NoConnectionReuseStrategy()) .setRedirectStrategy(new LaxRedirectStrategy()); maybeSetProxy(httpClientBuilder); return httpClientBuilder.build(); }  }
HttpClientFactoryImpl implements HttpClientFactory { @Override public CloseableHttpClient makeHttpClient() { HttpClientBuilder httpClientBuilder = HttpClients.custom().useSystemProperties() .setConnectionReuseStrategy(new NoConnectionReuseStrategy()) .setRedirectStrategy(new LaxRedirectStrategy()); maybeSetProxy(httpClientBuilder); return httpClientBuilder.build(); }  @Override CloseableHttpClient makeHttpClient(); }
HttpClientFactoryImpl implements HttpClientFactory { @Override public CloseableHttpClient makeHttpClient() { HttpClientBuilder httpClientBuilder = HttpClients.custom().useSystemProperties() .setConnectionReuseStrategy(new NoConnectionReuseStrategy()) .setRedirectStrategy(new LaxRedirectStrategy()); maybeSetProxy(httpClientBuilder); return httpClientBuilder.build(); }  @Override CloseableHttpClient makeHttpClient();  }