@Test public void resolveClassByCategory() { RESTClientHelper restClientHelper = new RESTClientHelper(); assertEquals(SimpleObject.class, restClientHelper.resolveClassByCategory(CATEGORY_PATIENT)); assertEquals(SimpleObject.class, restClientHelper.resolveClassByCategory(CATEGORY_VISIT)); assertEquals(AuditMessage.class, restClientHelper.resolveClassByCategory(CATEGORY_AUDIT_MESSAGE)); }
@Override public Class resolveClassByCategory(String category) { if (category.equalsIgnoreCase(CATEGORY_AUDIT_MESSAGE)) { return AuditMessage.class; } return SimpleObject.class; }
RESTClientHelper implements ClientHelper { @Override public Class resolveClassByCategory(String category) { if (category.equalsIgnoreCase(CATEGORY_AUDIT_MESSAGE)) { return AuditMessage.class; } return SimpleObject.class; } }
RESTClientHelper implements ClientHelper { @Override public Class resolveClassByCategory(String category) { if (category.equalsIgnoreCase(CATEGORY_AUDIT_MESSAGE)) { return AuditMessage.class; } return SimpleObject.class; }  }
RESTClientHelper implements ClientHelper { @Override public Class resolveClassByCategory(String category) { if (category.equalsIgnoreCase(CATEGORY_AUDIT_MESSAGE)) { return AuditMessage.class; } return SimpleObject.class; }  @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 Class resolveClassByCategory(String category) { if (category.equalsIgnoreCase(CATEGORY_AUDIT_MESSAGE)) { return AuditMessage.class; } return SimpleObject.class; }  @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);  }