@Test public void deleteRequest() throws Exception { ClientHttpEntity expected = new ClientHttpEntity<String>(TEST_PATIENT_UUID, HttpMethod.DELETE, URI.create(TEST_URI + "/" + TEST_PATIENT_UUID)); RESTClientHelper restClientHelper = new RESTClientHelper(); assertEquals(expected, restClientHelper.deleteRequest(TEST_URI, TEST_PATIENT_UUID)); }
@Override public ClientHttpEntity deleteRequest(String url, String uuid) throws URISyntaxException { url += "/" + uuid; return new ClientHttpEntity<String>(uuid, HttpMethod.DELETE, new URI(url)); }
RESTClientHelper implements ClientHelper { @Override public ClientHttpEntity deleteRequest(String url, String uuid) throws URISyntaxException { url += "/" + uuid; return new ClientHttpEntity<String>(uuid, HttpMethod.DELETE, new URI(url)); } }
RESTClientHelper implements ClientHelper { @Override public ClientHttpEntity deleteRequest(String url, String uuid) throws URISyntaxException { url += "/" + uuid; return new ClientHttpEntity<String>(uuid, HttpMethod.DELETE, new URI(url)); }  }
RESTClientHelper implements ClientHelper { @Override public ClientHttpEntity deleteRequest(String url, String uuid) throws URISyntaxException { url += "/" + uuid; return new ClientHttpEntity<String>(uuid, HttpMethod.DELETE, new URI(url)); }  @Override ClientHttpEntity retrieveRequest(String url); @Override ClientHttpEntity createRequest(String url, Object object); @Override ClientHttpEntity deleteRequest(String url, String uuid); @Override ClientHttpEntity updateRequest(String url, Object object); @Override Class resolveClassByCategory(String category); @Override List<ClientHttpRequestInterceptor> getCustomInterceptors(String username, String password); @Override List<HttpMessageConverter<?>> getCustomMessageConverter(); @Override boolean compareResourceObjects(String category, Object from, Object dest); @Override Object convertToObject(String formattedData, Class<?> clazz); @Override String convertToFormattedData(Object object); @Override Object convertToOpenMrsObject(Object o, String category); }
RESTClientHelper implements ClientHelper { @Override public ClientHttpEntity deleteRequest(String url, String uuid) throws URISyntaxException { url += "/" + uuid; return new ClientHttpEntity<String>(uuid, HttpMethod.DELETE, new URI(url)); }  @Override ClientHttpEntity retrieveRequest(String url); @Override ClientHttpEntity createRequest(String url, Object object); @Override ClientHttpEntity deleteRequest(String url, String uuid); @Override ClientHttpEntity updateRequest(String url, Object object); @Override Class resolveClassByCategory(String category); @Override List<ClientHttpRequestInterceptor> getCustomInterceptors(String username, String password); @Override List<HttpMessageConverter<?>> getCustomMessageConverter(); @Override boolean compareResourceObjects(String category, Object from, Object dest); @Override Object convertToObject(String formattedData, Class<?> clazz); @Override String convertToFormattedData(Object object); @Override Object convertToOpenMrsObject(Object o, String category);  }