From: Sandeep J Date: Wed, 1 Aug 2018 19:39:04 +0000 (+0530) Subject: added test case to TestAaiService.java X-Git-Tag: 1.4.0~131 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=3a19b9518b8dd2f56f1b417de46b1abbe4023117;p=appc.git added test case to TestAaiService.java to increase code coverage Issue-ID: APPC-1086 Change-Id: I5af628ec75f5dc16eac289fcaae4d62456b3edb0 Signed-off-by: Sandeep J --- 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 params=mockAai.getExpectedParams(); + mockAai.addVnfc("ibcxvm0002func0001",params , ""); } }