diff options
author | Rodrigo Lima <rodrigo.lima@yoppworks.com> | 2020-05-01 11:44:48 -0400 |
---|---|---|
committer | Ofir Sonsino <ofir.sonsino@intl.att.com> | 2020-05-03 08:24:20 +0000 |
commit | 5f8087fc96f07c771a9c4cf7c687c4e91be7fddc (patch) | |
tree | 266e96eb9ae7c237d0258088baf7a546c4e4c4c3 /openecomp-be/api/openecomp-sdc-rest-webapp/externaltesting-rest/externaltesting-rest-services/src/main | |
parent | d51e3d82c1ac720367c55b279ac0c7593308be2e (diff) |
Remove powermockito from ApiTest
- Remove powermockit from ApiTest. Add new constructor to ExternalTestingImpl in order to pass
vendorSoftwareProductManager param.
Issue-ID: SDC-3003
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: Ibdaa12a986557dbf1d4cdf6d4c1952ba642582cf
Diffstat (limited to 'openecomp-be/api/openecomp-sdc-rest-webapp/externaltesting-rest/externaltesting-rest-services/src/main')
-rw-r--r-- | openecomp-be/api/openecomp-sdc-rest-webapp/externaltesting-rest/externaltesting-rest-services/src/main/java/org/openecomp/sdcrests/externaltesting/rest/services/ExternalTestingImpl.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/openecomp-be/api/openecomp-sdc-rest-webapp/externaltesting-rest/externaltesting-rest-services/src/main/java/org/openecomp/sdcrests/externaltesting/rest/services/ExternalTestingImpl.java b/openecomp-be/api/openecomp-sdc-rest-webapp/externaltesting-rest/externaltesting-rest-services/src/main/java/org/openecomp/sdcrests/externaltesting/rest/services/ExternalTestingImpl.java index 7e8e98837e..851dec2f71 100644 --- a/openecomp-be/api/openecomp-sdc-rest-webapp/externaltesting-rest/externaltesting-rest-services/src/main/java/org/openecomp/sdcrests/externaltesting/rest/services/ExternalTestingImpl.java +++ b/openecomp-be/api/openecomp-sdc-rest-webapp/externaltesting-rest/externaltesting-rest-services/src/main/java/org/openecomp/sdcrests/externaltesting/rest/services/ExternalTestingImpl.java @@ -58,12 +58,19 @@ public class ExternalTestingImpl implements ExternalTesting { private final ExternalTestingManager testingManager; private static final int REQUEST_ID_LENGTH = 8; private static final String TESTING_INTERNAL_ERROR = "SDC-TEST-005"; - private final VendorSoftwareProductManager vendorSoftwareProductManager = - VspManagerFactory.getInstance().createInterface(); + private final VendorSoftwareProductManager vendorSoftwareProductManager; + private static final Logger logger = LoggerFactory.getLogger(ExternalTestingImpl.class); public ExternalTestingImpl(@Autowired ExternalTestingManager testingManager) { this.testingManager = testingManager; + this.vendorSoftwareProductManager = VspManagerFactory.getInstance().createInterface(); + } + + public ExternalTestingImpl(ExternalTestingManager testingManager, + VendorSoftwareProductManager vendorSoftwareProductManager) { + this.testingManager = testingManager; + this.vendorSoftwareProductManager = vendorSoftwareProductManager; } /** |