summaryrefslogtreecommitdiffstats
path: root/appc-outbound/appc-aai-client/provider
diff options
context:
space:
mode:
Diffstat (limited to 'appc-outbound/appc-aai-client/provider')
-rw-r--r--appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestVServerInfo.java19
1 files changed, 19 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 728d2704b..5da52d349 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
@@ -77,5 +77,24 @@ public class TestVServerInfo {
params.put("tenantId", "");
vServerInfo = new VServerInfo(params);
}
+
+ @Test(expected = MissingParameterException.class)
+ public void testConstructorWithEmptyCloudOwner() throws MissingParameterException {
+ Map<String, String> params = new HashMap<>();
+ params.put("vserverId", "testVserverId");
+ params.put("tenantId", "testTenantId");
+ params.put("cloudOwner", "");
+ vServerInfo = new VServerInfo(params);
+ }
+
+ @Test(expected = MissingParameterException.class)
+ public void testConstructorWithEmptyCloudRegionId() throws MissingParameterException {
+ Map<String, String> params = new HashMap<>();
+ params.put("vserverId", "testVserverId");
+ params.put("tenantId", "testTenantId");
+ params.put("cloudOwner", "testCloudOwner");
+ params.put("cloudRegionId", "");
+ vServerInfo = new VServerInfo(params);
+ }
}