Add another test

This commit is contained in:
Tadgh 2021-09-03 00:08:12 -04:00
parent e3e7edd320
commit 2ed7019a6c
1 changed files with 10 additions and 1 deletions

View File

@ -56,13 +56,22 @@ public class ResourceProviderSearchModifierDstu3Test extends BaseResourceProvide
} }
{ {
//Fails during a chain //Works in a chain
String noResultSearchString = "Observation?context.type:not=system|value"; String noResultSearchString = "Observation?context.type:not=system|value";
ResourceSearch resourceSearch = myMatchUrlService.getResourceSearch(noResultSearchString); ResourceSearch resourceSearch = myMatchUrlService.getResourceSearch(noResultSearchString);
SearchParameterMap searchParameterMap = resourceSearch.getSearchParameterMap(); SearchParameterMap searchParameterMap = resourceSearch.getSearchParameterMap();
IBundleProvider search = myObservationDao.search(searchParameterMap); IBundleProvider search = myObservationDao.search(searchParameterMap);
assertThat(search.size(), is(equalTo(0))); assertThat(search.size(), is(equalTo(0)));
} }
{
//Works in a chain with only value
String noResultSearchString = "Observation?context.type:not=value";
ResourceSearch resourceSearch = myMatchUrlService.getResourceSearch(noResultSearchString);
SearchParameterMap searchParameterMap = resourceSearch.getSearchParameterMap();
IBundleProvider search = myObservationDao.search(searchParameterMap);
assertThat(search.size(), is(equalTo(0)));
}
} }
} }