Add another test
This commit is contained in:
parent
e3e7edd320
commit
2ed7019a6c
|
@ -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)));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue