summaryrefslogtreecommitdiffstats
path: root/esr-mgr/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'esr-mgr/src/test')
-rw-r--r--esr-mgr/src/test/java/org/onap/aai/esr/entity/rest/VimRegisterInfoTest.java10
-rw-r--r--esr-mgr/src/test/java/org/onap/aai/esr/util/VimManagerUtilTest.java3
-rw-r--r--esr-mgr/src/test/java/org/onap/aai/esr/wrapper/VimManagerWrapperTest.java2
3 files changed, 13 insertions, 2 deletions
diff --git a/esr-mgr/src/test/java/org/onap/aai/esr/entity/rest/VimRegisterInfoTest.java b/esr-mgr/src/test/java/org/onap/aai/esr/entity/rest/VimRegisterInfoTest.java
index 74761f9..121d702 100644
--- a/esr-mgr/src/test/java/org/onap/aai/esr/entity/rest/VimRegisterInfoTest.java
+++ b/esr-mgr/src/test/java/org/onap/aai/esr/entity/rest/VimRegisterInfoTest.java
@@ -1,5 +1,5 @@
/**
- * Copyright 2017 ZTE Corporation.
+ * Copyright 2017-2018 ZTE Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -70,6 +70,14 @@ public class VimRegisterInfoTest {
}
@Test
+ public void getterAndSetter4physicalLocationId() {
+ final String physicalLocationId = "test";
+ VimRegisterInfo vimRegisterInfo = new VimRegisterInfo();
+ vimRegisterInfo.setPhysicalLocationId(physicalLocationId);
+ assertEquals(vimRegisterInfo.getPhysicalLocationId(), physicalLocationId);
+ }
+
+ @Test
public void getterAndSetter4complexName() {
final String complexName = "test";
VimRegisterInfo vimRegisterInfo = new VimRegisterInfo();
diff --git a/esr-mgr/src/test/java/org/onap/aai/esr/util/VimManagerUtilTest.java b/esr-mgr/src/test/java/org/onap/aai/esr/util/VimManagerUtilTest.java
index 9426753..160de58 100644
--- a/esr-mgr/src/test/java/org/onap/aai/esr/util/VimManagerUtilTest.java
+++ b/esr-mgr/src/test/java/org/onap/aai/esr/util/VimManagerUtilTest.java
@@ -1,5 +1,5 @@
/**
- * Copyright 2017 ZTE Corporation.
+ * Copyright 2017-2018 ZTE Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -47,6 +47,7 @@ public class VimManagerUtilTest {
vimRegisterInfo.setCloudType("openstack");
vimRegisterInfo.setCloudZone("default");
vimRegisterInfo.setComplexName("complex");
+ vimRegisterInfo.setPhysicalLocationId("complex");
vimRegisterInfo.setOwnerDefinedType("test");
vimRegisterInfo.setStatus("normal");
vimAuthInfos.add(vimAuthInfo);
diff --git a/esr-mgr/src/test/java/org/onap/aai/esr/wrapper/VimManagerWrapperTest.java b/esr-mgr/src/test/java/org/onap/aai/esr/wrapper/VimManagerWrapperTest.java
index e1df1bb..7387ddb 100644
--- a/esr-mgr/src/test/java/org/onap/aai/esr/wrapper/VimManagerWrapperTest.java
+++ b/esr-mgr/src/test/java/org/onap/aai/esr/wrapper/VimManagerWrapperTest.java
@@ -45,6 +45,7 @@ public class VimManagerWrapperTest {
vimRegisterInfo.setCloudType("openstack");
vimRegisterInfo.setCloudZone("default");
vimRegisterInfo.setComplexName("complex");
+ vimRegisterInfo.setPhysicalLocationId("complex");
vimRegisterInfo.setOwnerDefinedType("test");
vimRegisterInfo.setStatus("normal");
VimAuthInfo vimAuthInfo = new VimAuthInfo();
@@ -132,6 +133,7 @@ public class VimManagerWrapperTest {
vimRegisterInfo.setCloudType("openstack");
vimRegisterInfo.setCloudZone("default");
vimRegisterInfo.setComplexName("complex");
+ vimRegisterInfo.setPhysicalLocationId("complex");
vimRegisterInfo.setOwnerDefinedType("test");
vimRegisterInfo.setStatus("normal");
vimAuthInfos.add(vimAuthInfo);