From 19e62c0bae5ae689506b46bc3e66ef3596940b64 Mon Sep 17 00:00:00 2001 From: Melih Aydogdu Date: Thu, 27 Jun 2024 14:11:26 +0200 Subject: [PATCH] test fixed --- .../jpa/dao/r4/FhirResourceDaoR4ComboUniqueParamIT.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4ComboUniqueParamIT.java b/hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4ComboUniqueParamIT.java index 1a8e7ab7d6d1..e3462c3c20db 100644 --- a/hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4ComboUniqueParamIT.java +++ b/hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4ComboUniqueParamIT.java @@ -1295,7 +1295,9 @@ public void testUniqueValuesAreIndexed_StringAndReference_UsingConditional() { Patient pt1 = new Patient(); pt1.addName().setFamily("FAMILY1"); - pt1.setManagingOrganization(new Reference("Organization/ORG")); + Reference r1 = new Reference("Organization/ORG"); + r1.setResource(org); + pt1.setManagingOrganization(r1); IIdType id1 = myPatientDao.update(pt1, "Patient?name=FAMILY1&organization.name=ORG").getId().toUnqualifiedVersionless(); runInTransaction(() -> { @@ -1309,7 +1311,9 @@ public void testUniqueValuesAreIndexed_StringAndReference_UsingConditional() { pt1 = new Patient(); pt1.addName().setFamily("FAMILY1"); - pt1.setManagingOrganization(new Reference("Organization/ORG")); + Reference r2 = new Reference("Organization/ORG"); + r2.setResource(org); + pt1.setManagingOrganization(r2); myPatientDao.update(pt1, "Patient?name=FAMILY1&organization.name=ORG").getId().toUnqualifiedVersionless(); runInTransaction(() -> {