TankHttpClient4 implements TankHttpClient { @Override public void setProxy(String proxyhost, int proxyport) { if (StringUtils.isNotBlank(proxyhost)) { HttpHost proxy = new HttpHost(proxyhost, proxyport); RequestConfig requestConfig = context.getRequestConfig().custom().setProxy(proxy).build(); context.setRequestConfig(requestConfig); } else { RequestConfig requestConfig = context.getRequestConfig().custom().setProxy(null).build(); context.setRequestConfig(requestConfig); } } TankHttpClient4(); Object createHttpClient(); void setHttpClient(Object httpClient); void setConnectionTimeout(long connectionTimeout); @Override void doGet(BaseRequest request); @Override void doPut(BaseRequest request); @Override void doDelete(BaseRequest request); @Override void doOptions(BaseRequest request); @Override void doPost(BaseRequest request); @Override void addAuth(AuthCredentials creds); @Override void clearSession(); @Override void setCookie(TankCookie tankCookie); @Override void setProxy(String proxyhost, int proxyport);  }
@Test @Tag(TestGroups.FUNCTIONAL) public void setProxy() { }