From 8dc20d9eaaf4ec68129e47809ef62b83d8796935 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Tue, 29 Jan 2019 14:10:53 +0530 Subject: added test case to TestDGGeneralDBService to increase code coverage Issue-ID: APPC-1086 Change-Id: I1e1d12fd230ea45b3618e41a7416a35cbf64fe0c Signed-off-by: Sandeep J --- .../onap/appc/data/services/db/TestDGGeneralDBService.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'appc-config') 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 97809616b..0af63f3ac 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 @@ -338,4 +338,17 @@ public class TestDGGeneralDBService { QueryStatus status= dbService.saveUploadConfig(ctx, "test"); assertEquals(QueryStatus.SUCCESS, status); } + + @Test + public void testUpdateUploadConfig() throws SvcLogicException + { + SvcLogicContext ctx = new SvcLogicContext(); + + ctx.setAttribute("vnf-type", "test"); + ctx.setAttribute("vnfc-type", "test"); + + MockDGGeneralDBService dbService = MockDGGeneralDBService.initialise(); + QueryStatus status= dbService.updateUploadConfig(ctx, "test",10); + assertEquals(QueryStatus.SUCCESS, status); + } } -- cgit 1.2.3-korg