diff options
author | Sandeep J <sandeejh@in.ibm.com> | 2019-03-07 14:47:47 +0530 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-03-08 15:18:32 +0000 |
commit | 5ec5f25c899974a0b57b29e4787a2c19ebb53505 (patch) | |
tree | 7157d730109c9fae7d09f55591ca05bae784b097 /appc-config | |
parent | 0e9fabbd9aa5d9b0e9b26824bae2f7877c135d4f (diff) |
added test case to TestDGGeneralDBService.java
to increase code coverage
Issue-ID: APPC-1086
Change-Id: Idfc3aa674b566f5e4e04e29396dd9c08607854b6
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-config')
-rw-r--r-- | appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ -220,6 +220,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 { SvcLogicContext ctx = new SvcLogicContext(); |