From f8643f03085f4983154a96c66bafc3a89d4780b9 Mon Sep 17 00:00:00 2001 From: jdar Date: Thu, 22 Aug 2024 01:38:03 -0700 Subject: [PATCH] 6420 change test to use hamcrest --- .../java/ca/uhn/fhir/jpa/dao/r4/FhirSearchDaoR4Test.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirSearchDaoR4Test.java b/hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirSearchDaoR4Test.java index ef936d42094..2d8974a9cde 100644 --- a/hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirSearchDaoR4Test.java +++ b/hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirSearchDaoR4Test.java @@ -294,7 +294,7 @@ public class FhirSearchDaoR4Test extends BaseJpaR4Test { IBundleProvider searchResultBundle = myPatientDao.search(map, mySrd); List resourceIdsFromSearchResult = searchResultBundle.getAllResourceIds(); - assertThat(resourceIdsFromSearchResult).containsExactlyInAnyOrderElementsOf(expectedActivePatientIds); + assertThat(resourceIdsFromSearchResult, containsInAnyOrder(expectedActivePatientIds)); } @Test @@ -328,7 +328,7 @@ public class FhirSearchDaoR4Test extends BaseJpaR4Test { IBundleProvider searchResultBundle = myPatientDao.search(map, mySrd); List resourceIdsFromSearchResult = searchResultBundle.getAllResourceIds(); - assertThat(resourceIdsFromSearchResult).containsExactlyInAnyOrderElementsOf(expectedActivePatientIds); + assertThat(resourceIdsFromSearchResult, containsInAnyOrder(expectedActivePatientIds)); } @Test @@ -363,7 +363,7 @@ public class FhirSearchDaoR4Test extends BaseJpaR4Test { IBundleProvider searchResultBundle = myPatientDao.search(map, mySrd); List resourceIdsFromSearchResult = searchResultBundle.getAllResourceIds(); - assertThat(resourceIdsFromSearchResult).containsExactlyInAnyOrderElementsOf(expectedActivePatientIds); + assertThat(resourceIdsFromSearchResult, containsInAnyOrder(expectedActivePatientIds)); } }