summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2019-02-06 13:20:30 +0530
committerTakamune Cho <takamune.cho@att.com>2019-02-06 13:03:14 +0000
commite037dcd6ad404acb2df5da6f5b20f8f81f8e5c13 (patch)
treea5768e9c5bd2920f77cbc7ecce92465168bc9ed6
parentcd01ebd601bf8d93db5146d5ef5a94c1710cc1ed (diff)
added test case to TestDGGeneralDBService.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: I5c88e11546158129ff0e97ced38ebd23635535e2 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
-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 0af63f3ac..dde42f390 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
@@ -351,4 +351,17 @@ public class TestDGGeneralDBService {
QueryStatus status= dbService.updateUploadConfig(ctx, "test",10);
assertEquals(QueryStatus.SUCCESS, status);
}
+
+ @Test
+ public void testGetVnfcReferenceByVnfTypeNAction() throws SvcLogicException
+ {
+ SvcLogicContext ctx = new SvcLogicContext();
+
+ ctx.setAttribute("vnf-type", "test");
+ ctx.setAttribute("request-action", "test");
+
+ MockDGGeneralDBService dbService = MockDGGeneralDBService.initialise();
+ QueryStatus status= dbService.getVnfcReferenceByVnfTypeNAction(ctx, "test");
+ assertEquals(QueryStatus.SUCCESS, status);
+ }
}