TankHttpClient4 implements TankHttpClient { @Override public void doPut(BaseRequest request) { HttpPut httpput = new HttpPut(request.getRequestUrl()); String requestBody = request.getBody(); HttpEntity entity = new StringEntity(requestBody, ContentType.create(request.getContentType(), request.getContentTypeCharSet())); httpput.setEntity(entity); sendRequest(request, httpput, requestBody); } 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 doPut() { BaseRequest request = getRequest(new TankHttpClient4(), "http: request.doPut(null); BaseResponse response = request.getResponse(); assertNotNull(response); assertEquals(200, response.getHttpCode()); }