diff options
author | 2020-04-30 15:36:38 -0400 | |
---|---|---|
committer | 2020-05-03 08:25:49 +0000 | |
commit | 789d5c745e2d1a6add6dbbc065296ce4254b3046 (patch) | |
tree | 0eaa3226114be6319eeb95a8eb0f2fd42b687fc6 /openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main | |
parent | 5f8087fc96f07c771a9c4cf7c687c4e91be7fddc (diff) |
Remove powermockito from NetworksImplTest
This commit aims to remove the Powermockito dependency from NetworksImplTest.
Signed-off-by: Francis Toth <francis.toth@yoppworks.com>
Change-Id: I7eecb877f86a64514609e11fd9501f3fb972a866
Issue-ID: SDC-2984
Diffstat (limited to 'openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main')
-rw-r--r-- | openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/NetworksImpl.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/NetworksImpl.java b/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/NetworksImpl.java index 2db80639ae..6a6cbd0e60 100644 --- a/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/NetworksImpl.java +++ b/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/NetworksImpl.java @@ -48,8 +48,15 @@ import java.util.Collection; @Scope(value = "prototype") public class NetworksImpl implements Networks { - private NetworkManager networkManager = - NetworkManagerFactory.getInstance().createInterface(); + private final NetworkManager networkManager; + + public NetworksImpl(NetworkManager networkManager) { + this.networkManager = networkManager; + } + + public NetworksImpl() { + this(NetworkManagerFactory.getInstance().createInterface()); + } @Override public Response list(String vspId, String versionId, String user) { |