Add a test

This commit is contained in:
James Agnew 2018-10-10 19:11:57 -04:00
parent 0837daecc2
commit a9fcfaf79a
1 changed files with 13 additions and 0 deletions

View File

@ -2019,6 +2019,19 @@ public class FhirResourceDaoR4SearchNoFtTest extends BaseJpaR4Test {
patients = toUnqualifiedVersionlessIds(myPatientDao.search(params));
assertEquals(0, patients.size());
// Try with different casing
params = new SearchParameterMap();
params.add(Patient.SP_FAMILY, new StringParam("tester_testsearchstringparam"));
patients = toUnqualifiedVersionlessIds(myPatientDao.search(params));
assertThat(patients, containsInAnyOrder(pid1, pid2));
assertEquals(2, patients.size());
params = new SearchParameterMap();
params.add(Patient.SP_FAMILY, new StringParam("TESTER_TESTSEARCHSTRINGPARAM"));
patients = toUnqualifiedVersionlessIds(myPatientDao.search(params));
assertThat(patients, containsInAnyOrder(pid1, pid2));
assertEquals(2, patients.size());
}
@Test