TankHttpClient3 implements TankHttpClient { @Override public void doGet(BaseRequest request) { GetMethod httpget = new GetMethod(request.getRequestUrl()); sendRequest(request, httpget, request.getBody()); } TankHttpClient3(); Object createHttpClient(); void setHttpClient(Object httpClient); void setConnectionTimeout(long connectionTimeout); @Override void doGet(BaseRequest request); @Override void doPut(BaseRequest request); @Override void setCookie(TankCookie cookie); @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 setProxy(String proxyhost, int proxyport);  }
@Test @Tag(TestGroups.FUNCTIONAL) public void doGet() { BaseRequest request = getRequest(new TankHttpClient3(), "http: request.doGet(null); BaseResponse response = request.getResponse(); assertNotNull(response); assertEquals(200, response.getHttpCode()); assertNotNull(response.getBody()); }
@Test @Tag(TestGroups.MANUAL) public void testSSL() { BaseRequest request = getRequest(new TankHttpClient3(), "https: request.doGet(null); BaseResponse response = request.getResponse(); assertNotNull(response); }