summaryrefslogtreecommitdiffstats
path: root/esr-mgr
diff options
context:
space:
mode:
authorLizi <li.zi30@zte.com.cn>2018-02-06 06:49:43 +0000
committerLizi <li.zi30@zte.com.cn>2018-02-06 07:03:46 +0000
commitdf3d2cc8479e289cd0c0461075f54fb02acf2ce0 (patch)
treea08a4974a0e709e9dd01ea70eef406e46dd82034 /esr-mgr
parentf316de26b8d0028cb1eed863039492c5d07e23c5 (diff)
Add a constructive funtion, fix sonar issue.
Fix the sonar issue https://sonar.onap.org/component_issues?id=org.onap.aai.esr-server%3Aaai-esr-server#resolved=false|severities=MAJOR Change-Id: I172a75efd156c29faa5b146d73ee1d9d09b5e40a Issue-ID: AAI-734 Signed-off-by: Lizi <li.zi30@zte.com.cn>
Diffstat (limited to 'esr-mgr')
-rw-r--r--esr-mgr/src/main/java/org/onap/aai/esr/externalservice/cloud/VimManagerProxy.java4
-rw-r--r--esr-mgr/src/test/java/org/onap/aai/esr/externalservice/cloud/VimManagerProxyTest.java3
2 files changed, 4 insertions, 3 deletions
diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/cloud/VimManagerProxy.java b/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/cloud/VimManagerProxy.java
index 8d4aabd..8e086a9 100644
--- a/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/cloud/VimManagerProxy.java
+++ b/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/cloud/VimManagerProxy.java
@@ -21,6 +21,10 @@ import org.onap.aai.esr.exception.ExtsysException;
import com.eclipsesource.jaxrs.consumer.ConsumerFactory;
public class VimManagerProxy {
+
+ private VimManagerProxy() {
+
+ }
public static void updateVim(String cloudOwner, String cloudRegionId, Tenant tenant) throws ExtsysException {
ClientConfig config = new ClientConfig(new VimUpdateProvider());
diff --git a/esr-mgr/src/test/java/org/onap/aai/esr/externalservice/cloud/VimManagerProxyTest.java b/esr-mgr/src/test/java/org/onap/aai/esr/externalservice/cloud/VimManagerProxyTest.java
index 044d830..664f44c 100644
--- a/esr-mgr/src/test/java/org/onap/aai/esr/externalservice/cloud/VimManagerProxyTest.java
+++ b/esr-mgr/src/test/java/org/onap/aai/esr/externalservice/cloud/VimManagerProxyTest.java
@@ -23,12 +23,9 @@ import org.onap.aai.esr.exception.ExtsysException;
public class VimManagerProxyTest {
- VimManagerProxy proxy;
-
@Before
public void init() {
MsbConfig.setMsbServerAddr("http://msb-server");
- proxy = new VimManagerProxy();
}
@Test(expected = ExtsysException.class)