diff options
author | Sandeep J <sandeejh@in.ibm.com> | 2019-01-18 13:24:42 +0530 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-01-18 15:42:08 +0000 |
commit | bfe98bb6459acf01a932401e3d68f228d2fea14d (patch) | |
tree | 224c2573551d5dd58e1d159a4d8e0deaf2635773 /appc-config/appc-data-services/provider/src | |
parent | fe9e6d5920d6f699244191636b59ceb9bd3b7af6 (diff) |
added test case to TestDGGeneralDBService
to increase code coverage
Issue-ID: APPC-1086
Change-Id: I2e5908c7f4728ff9cd33d11ddf6b398c0a472bdd
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-config/appc-data-services/provider/src')
-rw-r--r-- | appc-config/appc-data-services/provider/src/test/java/org/onap/appc/data/services/db/TestDGGeneralDBService.java | 13 |
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 234b3fab5..e8c42b7e0 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 @@ -25,6 +25,7 @@ package org.onap.appc.data.services.db; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNull; import java.io.IOException; import org.apache.commons.io.IOUtils; @@ -296,6 +297,18 @@ public class TestDGGeneralDBService { } @Test + public void testGetCapability() throws Exception { + SvcLogicContext ctx = new SvcLogicContext(); + ctx.setAttribute("vnf-type", "test"); + ctx.setAttribute("artifactName", "template001"); + ctx.setAttribute("maxInternalVersion", "1234"); + MockDGGeneralDBService dbService = MockDGGeneralDBService.initialise(); + String status = dbService.getCapability(ctx, "test"); + assertNull(status); + + } + + @Test public void testCleanContextPropertyByPrefix() { SvcLogicContext ctx = new SvcLogicContext(); |