@Test public void timeoutDeleteEntity() throws MalformedURLException, ODataClientException { thrown.expect(ODataClientTimeout.class); caller.doDeleteEntity(new HashMap<>(), buildUrlToCall(HTTP_CLIENT_TIMEOUT)); }
@Override public void doDeleteEntity(Map<String, String> requestProperties, URL urlToCall) throws ODataClientException { sendRequest(populateRequestProperties(requestProperties, 0, ATOM_XML, ATOM_XML), urlToCall, "", ODataRequest.Method.DELETE.name()); }
BasicEndpointCaller implements EndpointCaller { @Override public void doDeleteEntity(Map<String, String> requestProperties, URL urlToCall) throws ODataClientException { sendRequest(populateRequestProperties(requestProperties, 0, ATOM_XML, ATOM_XML), urlToCall, "", ODataRequest.Method.DELETE.name()); } }
BasicEndpointCaller implements EndpointCaller { @Override public void doDeleteEntity(Map<String, String> requestProperties, URL urlToCall) throws ODataClientException { sendRequest(populateRequestProperties(requestProperties, 0, ATOM_XML, ATOM_XML), urlToCall, "", ODataRequest.Method.DELETE.name()); } BasicEndpointCaller(Properties properties); }
BasicEndpointCaller implements EndpointCaller { @Override public void doDeleteEntity(Map<String, String> requestProperties, URL urlToCall) throws ODataClientException { sendRequest(populateRequestProperties(requestProperties, 0, ATOM_XML, ATOM_XML), urlToCall, "", ODataRequest.Method.DELETE.name()); } BasicEndpointCaller(Properties properties); @Override String callEndpoint(Map<String, String> requestProperties, URL urlToCall); @Override InputStream getInputStream(Map<String, String> requestProperties, URL url); @Override String doPostEntity(Map<String, String> requestProperties, URL urlToCall, String body,
                               MediaType contentType, MediaType acceptType); @Override String doPutEntity(Map<String, String> requestProperties, URL urlToCall, String body,
                              MediaType type); @Override void doDeleteEntity(Map<String, String> requestProperties, URL urlToCall); }
BasicEndpointCaller implements EndpointCaller { @Override public void doDeleteEntity(Map<String, String> requestProperties, URL urlToCall) throws ODataClientException { sendRequest(populateRequestProperties(requestProperties, 0, ATOM_XML, ATOM_XML), urlToCall, "", ODataRequest.Method.DELETE.name()); } BasicEndpointCaller(Properties properties); @Override String callEndpoint(Map<String, String> requestProperties, URL urlToCall); @Override InputStream getInputStream(Map<String, String> requestProperties, URL url); @Override String doPostEntity(Map<String, String> requestProperties, URL urlToCall, String body,
                               MediaType contentType, MediaType acceptType); @Override String doPutEntity(Map<String, String> requestProperties, URL urlToCall, String body,
                              MediaType type); @Override void doDeleteEntity(Map<String, String> requestProperties, URL urlToCall);  }