From 5ec5f25c899974a0b57b29e4787a2c19ebb53505 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Thu, 7 Mar 2019 14:47:47 +0530 Subject: [PATCH 1/1] added test case to TestDGGeneralDBService.java to increase code coverage Issue-ID: APPC-1086 Change-Id: Idfc3aa674b566f5e4e04e29396dd9c08607854b6 Signed-off-by: Sandeep J --- .../onap/appc/data/services/db/TestDGGeneralDBService.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 { -- 2.16.6