diff --git a/hapi-fhir-jpaserver-empi/src/test/java/ca/uhn/fhir/jpa/empi/svc/EmpiMatchLinkSvcMultipleEidModeTest.java b/hapi-fhir-jpaserver-empi/src/test/java/ca/uhn/fhir/jpa/empi/svc/EmpiMatchLinkSvcMultipleEidModeTest.java index 807ede4b952..be9a192688c 100644 --- a/hapi-fhir-jpaserver-empi/src/test/java/ca/uhn/fhir/jpa/empi/svc/EmpiMatchLinkSvcMultipleEidModeTest.java +++ b/hapi-fhir-jpaserver-empi/src/test/java/ca/uhn/fhir/jpa/empi/svc/EmpiMatchLinkSvcMultipleEidModeTest.java @@ -143,7 +143,7 @@ public class EmpiMatchLinkSvcMultipleEidModeTest extends BaseEmpiR4Test { patient2 = createPatientAndUpdateLinks(patient2); assertLinksMatchResult(MATCH, MATCH, POSSIBLE_DUPLICATE); assertLinksNewPerson(true, true, false); - assertLinksMatchedByEid(false, false, false); + assertLinksMatchedByEid(false, false, true); List possibleDuplicates = myEmpiLinkDaoSvc.getPossibleDuplicates(); assertThat(possibleDuplicates, hasSize(1)); diff --git a/hapi-fhir-jpaserver-empi/src/test/java/ca/uhn/fhir/jpa/empi/svc/EmpiMatchLinkSvcTest.java b/hapi-fhir-jpaserver-empi/src/test/java/ca/uhn/fhir/jpa/empi/svc/EmpiMatchLinkSvcTest.java index 9c1291930f2..948b5c86aee 100644 --- a/hapi-fhir-jpaserver-empi/src/test/java/ca/uhn/fhir/jpa/empi/svc/EmpiMatchLinkSvcTest.java +++ b/hapi-fhir-jpaserver-empi/src/test/java/ca/uhn/fhir/jpa/empi/svc/EmpiMatchLinkSvcTest.java @@ -387,7 +387,7 @@ public class EmpiMatchLinkSvcTest extends BaseEmpiR4Test { IBundleProvider bundle = myPersonDao.search(new SearchParameterMap()); assertEquals(1, bundle.size()); - Person person = (Person) bundle.getResources(0, 0); + Person person = (Person) bundle.getResources(0, 1).get(0); assertEquals(Person.IdentityAssuranceLevel.LEVEL2, person.getLink().get(0).getAssurance()); assertEquals(Person.IdentityAssuranceLevel.LEVEL1, person.getLink().get(1).getAssurance()); assertEquals(Person.IdentityAssuranceLevel.LEVEL1, person.getLink().get(2).getAssurance());