TankHttpClient4 implements TankHttpClient { @Override public void doDelete(BaseRequest request) { HttpDelete httpdelete = new HttpDelete(request.getRequestUrl()); String requestBody = request.getBody(); String type = request.getHeaderInformation().get("Content-Type"); if (StringUtils.isBlank(type)) { request.getHeaderInformation().put("Content-Type", "application/json"); } sendRequest(request, httpdelete, 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 doDelete() { BaseRequest request = getRequest(new TankHttpClient4(), "http: request.doDelete(null); BaseResponse response = request.getResponse(); assertNotNull(response); assertEquals(200, response.getHttpCode()); }