added test case to TestDGGeneralDBService.java 27/77927/2
authorSandeep J <sandeejh@in.ibm.com>
Wed, 6 Feb 2019 07:50:30 +0000 (13:20 +0530)
committerTakamune Cho <takamune.cho@att.com>
Wed, 6 Feb 2019 13:03:14 +0000 (13:03 +0000)
to increase code coverage

Issue-ID: APPC-1086
Change-Id: I5c88e11546158129ff0e97ced38ebd23635535e2
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java

index 0af63f3..dde42f3 100644 (file)
@@ -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);
+    }
 }