added test case to TestAaiService.java 97/58497/3
authorSandeep J <sandeejh@in.ibm.com>
Wed, 1 Aug 2018 19:39:04 +0000 (01:09 +0530)
committerTakamune Cho <tc012c@att.com>
Fri, 3 Aug 2018 21:00:42 +0000 (21:00 +0000)
to increase code coverage

Issue-ID: APPC-1086
Change-Id: I5af628ec75f5dc16eac289fcaae4d62456b3edb0
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
appc-outbound/appc-aai-client/provider/src/test/java/org/onap/appc/aai/client/aai/TestAaiService.java

index 0f3d84c..671c355 100644 (file)
@@ -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 , "");        
     }
 
 }