summaryrefslogtreecommitdiffstats
path: root/adapters/mso-adapter-utils/src
diff options
context:
space:
mode:
authorGanesh <ganesh.c@samsung.com>2022-07-20 17:57:20 +0530
committerGanesh <ganesh.c@samsung.com>2022-07-20 17:57:23 +0530
commitb33e91d44eacd2b98eec94835e53d8ccbf8bb493 (patch)
tree25f70af1b8c323d50fc9a54523337eec250746ac /adapters/mso-adapter-utils/src
parent7d22299faab36bb62dfe1f611e63ecba17440d65 (diff)
Remove this useless eq(...) invocation
Signed-off-by: Ganesh <ganesh.c@samsung.com> Change-Id: I0bf810edff3d058d5d29f2b84b7e6ae76e682ef2 Issue-ID: SO-3966
Diffstat (limited to 'adapters/mso-adapter-utils/src')
-rw-r--r--adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoCommonUtilsTest.java6
-rw-r--r--adapters/mso-adapter-utils/src/test/java/org/onap/so/openstack/utils/MsoHeatUtilsTest.java2
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);
}