/** * @see ConceptServiceImpl#getAllConceptSources(boolean) */ @Test public void getAllConceptSources_shouldReturnAllConceptSourcesIncludingRetiredOnesWhenGivenTrue() { int conceptSourcesInDataset = 5; List<ConceptSource> conceptSources = conceptService.getAllConceptSources(true); assertEquals(conceptSourcesInDataset, conceptSources.size()); }
/** * @see ConceptServiceImpl#getAllConceptSources(boolean) */ @Test public void getAllConceptSources_shouldReturnAllConceptSourcesExcludingRetiredOnesWhenGivenFalse() { int conceptSourcesInDataset = 3; List<ConceptSource> conceptSources = conceptService.getAllConceptSources(false); assertEquals(conceptSourcesInDataset, conceptSources.size()); }
/** * @see org.openmrs.module.webservices.rest.web.v1_0.controller.MainResourceControllerTest#getAllCount() */ @Override public long getAllCount() { return service.getAllConceptSources(false).size(); }
/** * @see org.openmrs.module.webservices.rest.web.v1_0.controller.MainResourceControllerTest#getAllCount() */ @Override public long getAllCount() { return service.getAllConceptSources().size(); }
/** * @see org.openmrs.module.webservices.rest.web.v1_0.controller.MainResourceControllerTest#getAllCount() */ @Override public long getAllCount() { return service.getAllConceptSources(false).size(); }
/** * @see org.openmrs.module.webservices.rest.web.resource.impl.DelegatingCrudResource#doSearch(org.openmrs.module.webservices.rest.web.RequestContext) */ @Override protected NeedsPaging<ConceptSource> doSearch(RequestContext context) { return doSearch(context, Context.getConceptService().getAllConceptSources()); }
/** * @see org.openmrs.module.webservices.rest.web.resource.impl.DelegatingCrudResource#doGetAll(org.openmrs.module.webservices.rest.web.RequestContext) */ @Override protected NeedsPaging<ConceptSource> doGetAll(RequestContext context) { return doGetAll(context, Context.getConceptService().getAllConceptSources()); }
List<ConceptSource> sources = Context.getConceptService().getAllConceptSources(false); if (sources != null) { for (ConceptSource source : sources) {
/** * @see org.openmrs.module.webservices.rest.web.resource.impl.DelegatingCrudResource#doGetAll(org.openmrs.module.webservices.rest.web.RequestContext) */ @Override protected NeedsPaging<ConceptSource> doGetAll(RequestContext context) { return doGetAll(context, Context.getConceptService().getAllConceptSources(context.getIncludeAll())); }
/** * @see org.openmrs.module.webservices.rest.web.resource.impl.DelegatingCrudResource#doSearch(org.openmrs.module.webservices.rest.web.RequestContext) */ @Override protected NeedsPaging<ConceptSource> doSearch(RequestContext context) { return doSearch(context, Context.getConceptService().getAllConceptSources(context.getIncludeAll())); } }