From c06016a8c55d1363c17e1993fa4bdeb0bc2d64ab Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Thu, 4 Apr 2019 00:52:41 +0530 Subject: [PATCH] added test cases to DBServiceTest.java to increase code coverage Issue-ID: APPC-1086 Change-Id: I149ad0ee6354822fcb9712fe12ad22885b65cf8e Signed-off-by: Sandeep J --- .../artifact/handler/dbservices/DBServiceTest.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/dbservices/DBServiceTest.java b/appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/dbservices/DBServiceTest.java index 9d4740356..2ca39bc73 100644 --- a/appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/dbservices/DBServiceTest.java +++ b/appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/dbservices/DBServiceTest.java @@ -381,5 +381,26 @@ public class DBServiceTest { assertTrue(result); } + @Test + public void testProcessConfigureActionDg() throws SvcLogicException { + MockDBService dbService = MockDBService.initialise(true); + SvcLogicContext ctx = new SvcLogicContext(); + dbService.processConfigureActionDg(ctx, true); + } + + @Test + public void testUpdateProtocolReference() throws SvcLogicException { + MockDBService dbService = MockDBService.initialise(); + SvcLogicContext ctx = new SvcLogicContext(); + ctx.setAttribute("test", "test"); + String vnfType = "testVnf"; + String protocol = "testProtocol"; + String action = "testAction"; + String actionLevel = "testActionLevel"; + String template = "testTemplateData"; + dbService.updateProtocolReference(ctx, vnfType, protocol, action, actionLevel, template); + + } + } -- 2.16.6