diff options
author | vasraz <vasyl.razinkov@est.tech> | 2022-01-10 19:23:57 +0000 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2022-01-13 09:38:58 +0000 |
commit | 0fbe309f797b4cdac9d507a6f3dfd193644aa224 (patch) | |
tree | 8c276b59e5a03dab17714ff3b50d96432bf45fb3 /openecomp-be/api/openecomp-sdc-rest-webapp/externaltesting-rest/externaltesting-rest-services/src/test/java | |
parent | 9253465137072c13a7720bac1496b2f3c8655eb8 (diff) |
Improve testing stability
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: I3f631642a97e65d6628816767e0a5408f02f4bc6
Issue-ID: SDC-3839
Diffstat (limited to 'openecomp-be/api/openecomp-sdc-rest-webapp/externaltesting-rest/externaltesting-rest-services/src/test/java')
-rw-r--r-- | openecomp-be/api/openecomp-sdc-rest-webapp/externaltesting-rest/externaltesting-rest-services/src/test/java/org/openecomp/sdcrests/externaltesting/rest/services/ApiTest.java | 20 |
1 files changed, 10 insertions, 10 deletions
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); |