From a9fcfaf79a694d0aa821f31add41ccf1f99eb00c Mon Sep 17 00:00:00 2001 From: James Agnew Date: Wed, 10 Oct 2018 19:11:57 -0400 Subject: [PATCH] Add a test --- .../jpa/dao/r4/FhirResourceDaoR4SearchNoFtTest.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchNoFtTest.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchNoFtTest.java index 9ae77a3b429..cbc72081089 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchNoFtTest.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4SearchNoFtTest.java @@ -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