aboutsummaryrefslogtreecommitdiffstats
path: root/appc-config
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2019-01-29 14:10:53 +0530
committerSandeep J <sandeejh@in.ibm.com>2019-01-29 14:12:06 +0530
commit8dc20d9eaaf4ec68129e47809ef62b83d8796935 (patch)
treecea9848aace98a399ff1fcf6620a403589cdb12b /appc-config
parent9e6e08c423fcf603ed79a1923c6e29645a8ac511 (diff)
added test case to TestDGGeneralDBService
to increase code coverage Issue-ID: APPC-1086 Change-Id: I1e1d12fd230ea45b3618e41a7416a35cbf64fe0c 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.java13
1 files changed, 13 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 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);
+ }
}