added test case to TestDGGeneralDBService.java
[appc.git] / 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 {