From 849ead10007b6fc4d408cd95ad3e92c11b831cc0 Mon Sep 17 00:00:00 2001 From: Luis Lainez Date: Fri, 26 Apr 2024 14:51:29 +1000 Subject: [PATCH] Fix tests --- .../netflix/conductor/client/http/TaskClientSpec.groovy | 8 ++++---- .../conductor/client/http/WorkflowClientSpec.groovy | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/client/src/test/groovy/com/netflix/conductor/client/http/TaskClientSpec.groovy b/client/src/test/groovy/com/netflix/conductor/client/http/TaskClientSpec.groovy index 16a32d181..f4a2d5e87 100644 --- a/client/src/test/groovy/com/netflix/conductor/client/http/TaskClientSpec.groovy +++ b/client/src/test/groovy/com/netflix/conductor/client/http/TaskClientSpec.groovy @@ -44,7 +44,7 @@ class TaskClientSpec extends ClientSpecification { then: 1 * requestHandler.get(uri) >> Mock(ClientResponse.class) { - getEntity(_) >> result + readEntity(_) >> result } searchResult.totalHits == result.totalHits @@ -66,7 +66,7 @@ class TaskClientSpec extends ClientSpecification { then: 1 * requestHandler.get(uri) >> Mock(ClientResponse.class) { - getEntity(_) >> result + readEntity(_) >> result } searchResult.totalHits == result.totalHits @@ -92,7 +92,7 @@ class TaskClientSpec extends ClientSpecification { then: 1 * requestHandler.get(uri) >> Mock(ClientResponse.class) { - getEntity(_) >> result + readEntity(_) >> result } searchResult.totalHits == result.totalHits @@ -118,7 +118,7 @@ class TaskClientSpec extends ClientSpecification { then: 1 * requestHandler.get(uri) >> Mock(ClientResponse.class) { - getEntity(_) >> result + readEntity(_) >> result } searchResult.totalHits == result.totalHits diff --git a/client/src/test/groovy/com/netflix/conductor/client/http/WorkflowClientSpec.groovy b/client/src/test/groovy/com/netflix/conductor/client/http/WorkflowClientSpec.groovy index 912980187..e58cc64f1 100644 --- a/client/src/test/groovy/com/netflix/conductor/client/http/WorkflowClientSpec.groovy +++ b/client/src/test/groovy/com/netflix/conductor/client/http/WorkflowClientSpec.groovy @@ -45,7 +45,7 @@ class WorkflowClientSpec extends ClientSpecification { then: 1 * requestHandler.get(uri) >> Mock(ClientResponse.class) { - getEntity(_) >> result + readEntity(_) >> result } searchResult.totalHits == result.totalHits @@ -67,7 +67,7 @@ class WorkflowClientSpec extends ClientSpecification { then: 1 * requestHandler.get(uri) >> Mock(ClientResponse.class) { - getEntity(_) >> result + readEntity(_) >> result } searchResult.totalHits == result.totalHits @@ -93,7 +93,7 @@ class WorkflowClientSpec extends ClientSpecification { then: 1 * requestHandler.get(uri) >> Mock(ClientResponse.class) { - getEntity(_) >> result + readEntity(_) >> result } searchResult.totalHits == result.totalHits @@ -119,7 +119,7 @@ class WorkflowClientSpec extends ClientSpecification { then: 1 * requestHandler.get(uri) >> Mock(ClientResponse.class) { - getEntity(_) >> result + readEntity(_) >> result } searchResult.totalHits == result.totalHits