summaryrefslogtreecommitdiffstats
path: root/appc-outbound/appc-aai-client
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-08-02 01:09:04 +0530
committerTakamune Cho <tc012c@att.com>2018-08-03 21:00:42 +0000
commit3a19b9518b8dd2f56f1b417de46b1abbe4023117 (patch)
treee7bae3835fa38d868dc42a2a17472d57a0413194 /appc-outbound/appc-aai-client
parent1a015a6ca222e1bf94050ea9a98ef9ec1577209c (diff)
added test case to TestAaiService.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: I5af628ec75f5dc16eac289fcaae4d62456b3edb0 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-outbound/appc-aai-client')
-rw-r--r--appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestAaiService.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestAaiService.java b/appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestAaiService.java
index 0f3d84c4c..671c355be 100644
--- a/appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestAaiService.java
+++ b/appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestAaiService.java
@@ -6,6 +6,8 @@
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
+ * Modification Copyright (C) 2018 IBM.
+ * =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -396,6 +398,14 @@ public class TestAaiService {
mockAai.getIdentityUrl(inParams, ctx);
assertEquals(ctx.getAttribute("tmp.vnfInfo.cloud-region.identity-url"), "TestUrl");
+ }
+
+ @Test
+ public void testAddvnfc()
+ {
+ MockAaiService mockAai = new MockAaiService(aaiClient);
+ Map<String, String> params=mockAai.getExpectedParams();
+ mockAai.addVnfc("ibcxvm0002func0001",params , "");
}
}