/** * @see LocationService#getLocationTags(String) */ @Test public void getLocationTags_shouldReturnEmptyListWhenNoLocationTagMatchGivenSearchString() { Assert.assertEquals(0, Context.getLocationService().getLocationTags("!!!").size()); }
/** * @see org.openmrs.module.webservices.rest.web.resource.impl.DelegatingCrudResource#doSearch(org.openmrs.module.webservices.rest.web.RequestContext) */ @Override protected NeedsPaging<LocationTag> doSearch(RequestContext context) { return new NeedsPaging<LocationTag>(Context.getLocationService().getLocationTags(context.getParameter("q")), context); }