From b33e91d44eacd2b98eec94835e53d8ccbf8bb493 Mon Sep 17 00:00:00 2001 From: Ganesh Date: Wed, 20 Jul 2022 17:57:20 +0530 Subject: Remove this useless eq(...) invocation Signed-off-by: Ganesh Change-Id: I0bf810edff3d058d5d29f2b84b7e6ae76e682ef2 Issue-ID: SO-3966 --- .../test/java/org/onap/so/openstack/utils/MsoCommonUtilsTest.java | 6 +++--- .../src/test/java/org/onap/so/openstack/utils/MsoHeatUtilsTest.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoCommonUtilsTest.java b/adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoCommonUtilsTest.java index dfb5ac67a7..160201f442 100644 --- a/adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoCommonUtilsTest.java +++ b/adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoCommonUtilsTest.java @@ -113,7 +113,7 @@ public class MsoCommonUtilsTest extends BaseTest { OpenStackResponse openStackResponse = Mockito.mock(OpenStackResponse.class); Error error = mapper.readValue(new File(RESOURCE_PATH + "Error.json"), Error.class); - doReturn(error).when(openStackResponse).getErrorEntity(eq(Error.class)); + doReturn(error).when(openStackResponse).getErrorEntity(Error.class); openStackResponseException = new OpenStackResponseException("response", 501, openStackResponse); @@ -144,7 +144,7 @@ public class MsoCommonUtilsTest extends BaseTest { OpenStackResponse openStackResponse = Mockito.mock(OpenStackResponse.class); Explanation explanation = mapper.readValue(new File(RESOURCE_PATH + "Explanation.json"), Explanation.class); - doReturn(explanation).when(openStackResponse).getErrorEntity(eq(Explanation.class)); + doReturn(explanation).when(openStackResponse).getErrorEntity(Explanation.class); openStackResponseException = new OpenStackResponseException("response", 501, openStackResponse); @@ -175,7 +175,7 @@ public class MsoCommonUtilsTest extends BaseTest { OpenStackResponse openStackResponse = Mockito.mock(OpenStackResponse.class); NeutronError explanation = mapper.readValue(new File(RESOURCE_PATH + "NeutronError.json"), NeutronError.class); - doReturn(explanation).when(openStackResponse).getErrorEntity(eq(NeutronError.class)); + doReturn(explanation).when(openStackResponse).getErrorEntity(NeutronError.class); openStackResponseException = new OpenStackResponseException("response", 501, openStackResponse); diff --git a/adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoHeatUtilsTest.java b/adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoHeatUtilsTest.java index 5ee4987e38..85219c3b5c 100644 --- a/adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoHeatUtilsTest.java +++ b/adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoHeatUtilsTest.java @@ -447,7 +447,7 @@ public class MsoHeatUtilsTest extends MsoHeatUtils { heatUtils.createStack(createStackParam, cloudSiteId, tenantId); Mockito.verify(stackResource, times(1)).create(createStackParam); - Mockito.verify(heatUtils, times(1)).saveStackRequest(eq(createStackParam), eq(requestId), eq("stackName")); + Mockito.verify(heatUtils, times(1)).saveStackRequest(createStackParam, requestId, "stackName"); Mockito.verify(heatClient, times(1)).getStacks(); Mockito.verify(stackResource, times(1)).create(createStackParam); } -- cgit 1.2.3-korg