diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/search/reindex/ResourceReindexingSvcImplTest.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/search/reindex/ResourceReindexingSvcImplTest.java index 28abbb7ffa1..1e7152417b6 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/search/reindex/ResourceReindexingSvcImplTest.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/search/reindex/ResourceReindexingSvcImplTest.java @@ -208,7 +208,7 @@ public class ResourceReindexingSvcImplTest extends BaseJpaTest { when(myDaoRegistry.getResourceDao(eq(Patient.class))).thenReturn(myResourceDao); when(myDaoRegistry.getResourceDao(eq("Observation"))).thenReturn(myResourceDao); when(myDaoRegistry.getResourceDao(eq(Observation.class))).thenReturn(myResourceDao); - when(myResourceDao.read(any())).thenAnswer(t->{ + when(myResourceDao.read(any(), any(), anyBoolean())).thenAnswer(t->{ IIdType id = (IIdType) t.getArguments()[0]; return resources.get(id.getIdPartAsLong().intValue()); }); @@ -269,7 +269,7 @@ public class ResourceReindexingSvcImplTest extends BaseJpaTest { when(myDaoRegistry.getResourceDao(eq(Patient.class))).thenReturn(myResourceDao); when(myDaoRegistry.getResourceDao(eq("Observation"))).thenReturn(myResourceDao); when(myDaoRegistry.getResourceDao(eq(Observation.class))).thenReturn(myResourceDao); - when(myResourceDao.read(any())).thenAnswer(t->{ + when(myResourceDao.read(any(), any(), anyBoolean())).thenAnswer(t->{ IIdType id = (IIdType) t.getArguments()[0]; return resources.get(id.getIdPartAsLong().intValue()); });