@Test public void testGetCloseableWithProxyDifferentFromNonProxy() { given(configuration.getConnectionTimeout()).willReturn(2); given(configuration.getSocketTimeout()).willReturn(5); CloseableHttpClient httpProxy = driver.getCloseableHttpClient(true); CloseableHttpClient httpNoProxy = driver.getCloseableHttpClient(false); BDDAssertions.then(httpProxy).isNotEqualTo(httpNoProxy); }
@Override public CloseableHttpClient getCloseableHttpClient(boolean useProxy) { return useProxy ? closeableHttpClientWithProxy : closeableHttpClient; }
DefaultRestDriver implements Driver { @Override public CloseableHttpClient getCloseableHttpClient(boolean useProxy) { return useProxy ? closeableHttpClientWithProxy : closeableHttpClient; } }
DefaultRestDriver implements Driver { @Override public CloseableHttpClient getCloseableHttpClient(boolean useProxy) { return useProxy ? closeableHttpClientWithProxy : closeableHttpClient; } @Inject  DefaultRestDriver(final Driver.Configuration configuration, final @Named("export.http.proxy.host") String proxyHost,
                             final @Named("export.http.proxy.port") Integer proxyPort); }
DefaultRestDriver implements Driver { @Override public CloseableHttpClient getCloseableHttpClient(boolean useProxy) { return useProxy ? closeableHttpClientWithProxy : closeableHttpClient; } @Inject  DefaultRestDriver(final Driver.Configuration configuration, final @Named("export.http.proxy.host") String proxyHost,
                             final @Named("export.http.proxy.port") Integer proxyPort); @Override CloseableHttpClient getCloseableHttpClient(boolean useProxy); }
DefaultRestDriver implements Driver { @Override public CloseableHttpClient getCloseableHttpClient(boolean useProxy) { return useProxy ? closeableHttpClientWithProxy : closeableHttpClient; } @Inject  DefaultRestDriver(final Driver.Configuration configuration, final @Named("export.http.proxy.host") String proxyHost,
                             final @Named("export.http.proxy.port") Integer proxyPort); @Override CloseableHttpClient getCloseableHttpClient(boolean useProxy);  }