aboutsummaryrefslogtreecommitdiffstats
path: root/appc-outbound/appc-aai-client/provider
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2019-03-26 13:10:29 +0530
committerPatrick Brady <patrick.brady@att.com>2019-03-26 20:05:07 +0000
commit9c018402d46127218dd8ed2bf67ed41f925b2305 (patch)
tree097deb7e7a1a3d984dfa10ad9a02727a5c5ef4a7 /appc-outbound/appc-aai-client/provider
parenta016bd294a49ef80d747601935f7071aae88e9ab (diff)
added test cases to TestVServerInfo.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: I1141fa522e3c4943c2a51d9c585cdcaa0186b373 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
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.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);
+ }
}