diff options
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 | 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(); |