added test case to TestDGGeneralDBService.java 84/79884/3
authorSandeep J <sandeejh@in.ibm.com>
Thu, 7 Mar 2019 09:17:47 +0000 (14:47 +0530)
committerTakamune Cho <takamune.cho@att.com>
Fri, 8 Mar 2019 15:18:32 +0000 (15:18 +0000)
to increase code coverage

Issue-ID: APPC-1086
Change-Id: Idfc3aa674b566f5e4e04e29396dd9c08607854b6
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 dde42f3..fbb8cf8 100644 (file)
@@ -219,6 +219,18 @@ public class TestDGGeneralDBService {
 
     }
     
+    @Test
+    public void testSavePrepareRelationshipWithSdcInd() throws SvcLogicException {
+
+        SvcLogicContext ctx = new SvcLogicContext();
+        ctx.setAttribute("service-instance-id", "test");
+        ctx.setAttribute("request-id", "test");
+        MockDGGeneralDBService dbService =     MockDGGeneralDBService.initialise();
+        QueryStatus status = dbService.savePrepareRelationship(ctx, "test", "test", "Y");
+        assertEquals(QueryStatus.SUCCESS, status);
+
+    }
+    
     @Test
     public void testGetDownloadConfigTemplateByVnf() throws SvcLogicException {