added test cases to DBServiceTest.java 38/84138/2
authorSandeep J <sandeejh@in.ibm.com>
Wed, 3 Apr 2019 19:22:41 +0000 (00:52 +0530)
committerTakamune Cho <takamune.cho@att.com>
Thu, 4 Apr 2019 13:34:32 +0000 (13:34 +0000)
to increase code coverage

Issue-ID: APPC-1086
Change-Id: I149ad0ee6354822fcb9712fe12ad22885b65cf8e
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/dbservices/DBServiceTest.java

index 9d47403..2ca39bc 100644 (file)
@@ -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);
+       
+    }
+    
 }