From 0fbe309f797b4cdac9d507a6f3dfd193644aa224 Mon Sep 17 00:00:00 2001 From: vasraz Date: Mon, 10 Jan 2022 19:23:57 +0000 Subject: Improve testing stability Signed-off-by: Vasyl Razinkov Change-Id: I3f631642a97e65d6628816767e0a5408f02f4bc6 Issue-ID: SDC-3839 --- .../externaltesting/rest/services/ApiTest.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'openecomp-be/api/openecomp-sdc-rest-webapp/externaltesting-rest') diff --git a/openecomp-be/api/openecomp-sdc-rest-webapp/externaltesting-rest/externaltesting-rest-services/src/test/java/org/openecomp/sdcrests/externaltesting/rest/services/ApiTest.java b/openecomp-be/api/openecomp-sdc-rest-webapp/externaltesting-rest/externaltesting-rest-services/src/test/java/org/openecomp/sdcrests/externaltesting/rest/services/ApiTest.java index 9ecc92a1b6..3833bb331f 100644 --- a/openecomp-be/api/openecomp-sdc-rest-webapp/externaltesting-rest/externaltesting-rest-services/src/test/java/org/openecomp/sdcrests/externaltesting/rest/services/ApiTest.java +++ b/openecomp-be/api/openecomp-sdc-rest-webapp/externaltesting-rest/externaltesting-rest-services/src/test/java/org/openecomp/sdcrests/externaltesting/rest/services/ApiTest.java @@ -17,7 +17,7 @@ package org.openecomp.sdcrests.externaltesting.rest.services; -import static org.mockito.MockitoAnnotations.initMocks; +import static org.mockito.MockitoAnnotations.openMocks; import java.util.ArrayList; import java.util.Arrays; @@ -59,7 +59,7 @@ public class ApiTest { @Before public void setUp() { try { - initMocks(this); + openMocks(this); } catch (Exception e) { e.printStackTrace(); } @@ -167,7 +167,7 @@ public class ApiTest { */ @Test() public void testConfigExceptions() { - initMocks(this); + openMocks(this); ExternalTestingManager m = new ApiTestExternalTestingManager(); ExternalTestingImpl testingF = new ExternalTestingImpl(m, vendorSoftwareProductManager); @@ -184,7 +184,7 @@ public class ApiTest { */ @Test() public void testEndpointExceptions() { - initMocks(this); + openMocks(this); ExternalTestingManager m = new ApiTestExternalTestingManager(); ExternalTestingImpl testingF = new ExternalTestingImpl(m, vendorSoftwareProductManager); @@ -201,7 +201,7 @@ public class ApiTest { */ @Test() public void testExecutionExceptions() { - initMocks(this); + openMocks(this); ExternalTestingManager m = new ApiTestExternalTestingManager(); ExternalTestingImpl testingF = new ExternalTestingImpl(m, vendorSoftwareProductManager); @@ -220,7 +220,7 @@ public class ApiTest { */ @Test() public void testScenarioExceptions() { - initMocks(this); + openMocks(this); ExternalTestingManager m = new ApiTestExternalTestingManager(); ExternalTestingImpl testingF = new ExternalTestingImpl(m, vendorSoftwareProductManager); @@ -235,7 +235,7 @@ public class ApiTest { */ @Test() public void testTestCaseExceptions() { - initMocks(this); + openMocks(this); ExternalTestingManager m = new ApiTestExternalTestingManager(); ExternalTestingImpl testingF = new ExternalTestingImpl(m, vendorSoftwareProductManager); @@ -250,7 +250,7 @@ public class ApiTest { */ @Test() public void testTestCasesExceptions() { - initMocks(this); + openMocks(this); ExternalTestingManager m = new ApiTestExternalTestingManager(); ExternalTestingImpl testingF = new ExternalTestingImpl(m, vendorSoftwareProductManager); @@ -265,7 +265,7 @@ public class ApiTest { */ @Test() public void testTestSuitesExceptions() { - initMocks(this); + openMocks(this); ExternalTestingManager m = new ApiTestExternalTestingManager(); ExternalTestingImpl testingF = new ExternalTestingImpl(m, vendorSoftwareProductManager); @@ -280,7 +280,7 @@ public class ApiTest { */ @Test() public void testTreeExceptions() { - initMocks(this); + openMocks(this); ExternalTestingManager m = new ApiTestExternalTestingManager(); ExternalTestingImpl testingF = new ExternalTestingImpl(m, vendorSoftwareProductManager); -- cgit 1.2.3-korg