summaryrefslogtreecommitdiffstats
path: root/appc-outbound
diff options
context:
space:
mode:
Diffstat (limited to 'appc-outbound')
-rw-r--r--appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestVServerInfo.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestVServerInfo.java b/appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestVServerInfo.java
index 879eb9d61..728d2704b 100644
--- a/appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestVServerInfo.java
+++ b/appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestVServerInfo.java
@@ -62,5 +62,20 @@ public class TestVServerInfo {
public void testCloudRegionId() {
assertEquals("testCloudRegionId", vServerInfo.getCloudRegionId());
}
+
+ @Test(expected = MissingParameterException.class)
+ public void testConstructorWithEmptyVserverId() throws MissingParameterException {
+ Map<String, String> params = new HashMap<>();
+ params.put("vserverId", "");
+ vServerInfo = new VServerInfo(params);
+ }
+
+ @Test(expected = MissingParameterException.class)
+ public void testConstructorWithEmptyTenantId() throws MissingParameterException {
+ Map<String, String> params = new HashMap<>();
+ params.put("vserverId", "testVserverId");
+ params.put("tenantId", "");
+ vServerInfo = new VServerInfo(params);
+ }
}