From d150340d533564e1b90ef61fe01cf81acede7cb6 Mon Sep 17 00:00:00 2001 From: James Agnew Date: Tue, 4 Dec 2018 19:55:14 -0500 Subject: [PATCH] One more test fix --- .../jpa/search/reindex/ResourceReindexingSvcImplTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); });