From 3a19b9518b8dd2f56f1b417de46b1abbe4023117 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Thu, 2 Aug 2018 01:09:04 +0530 Subject: added test case to TestAaiService.java to increase code coverage Issue-ID: APPC-1086 Change-Id: I5af628ec75f5dc16eac289fcaae4d62456b3edb0 Signed-off-by: Sandeep J --- .../test/java/org/onap/appc/aai/client/aai/TestAaiService.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'appc-outbound') 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 , ""); } } -- cgit 1.2.3-korg