From: Sandeep J Date: Thu, 7 Mar 2019 09:17:47 +0000 (+0530) Subject: added test case to TestDGGeneralDBService.java X-Git-Tag: 1.5.0~103 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F84%2F79884%2F3;p=appc.git added test case to TestDGGeneralDBService.java to increase code coverage Issue-ID: APPC-1086 Change-Id: Idfc3aa674b566f5e4e04e29396dd9c08607854b6 Signed-off-by: Sandeep J --- diff --git a/appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java b/appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java index dde42f390..fbb8cf8b9 100644 --- a/appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java +++ b/appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java @@ -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 {