From e037dcd6ad404acb2df5da6f5b20f8f81f8e5c13 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Wed, 6 Feb 2019 13:20:30 +0530 Subject: added test case to TestDGGeneralDBService.java to increase code coverage Issue-ID: APPC-1086 Change-Id: I5c88e11546158129ff0e97ced38ebd23635535e2 Signed-off-by: Sandeep J --- .../onap/appc/data/services/db/TestDGGeneralDBService.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'appc-config/appc-data-services') diff --git a/appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java b/appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java index 0af63f3ac..dde42f390 100644 --- a/appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java +++ b/appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java @@ -351,4 +351,17 @@ public class TestDGGeneralDBService { QueryStatus status= dbService.updateUploadConfig(ctx, "test",10); assertEquals(QueryStatus.SUCCESS, status); } + + @Test + public void testGetVnfcReferenceByVnfTypeNAction() throws SvcLogicException + { + SvcLogicContext ctx = new SvcLogicContext(); + + ctx.setAttribute("vnf-type", "test"); + ctx.setAttribute("request-action", "test"); + + MockDGGeneralDBService dbService = MockDGGeneralDBService.initialise(); + QueryStatus status= dbService.getVnfcReferenceByVnfTypeNAction(ctx, "test"); + assertEquals(QueryStatus.SUCCESS, status); + } } -- cgit