diff options
author | Sandeep J <sandeejh@in.ibm.com> | 2019-04-04 00:52:41 +0530 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-04-04 13:34:32 +0000 |
commit | c06016a8c55d1363c17e1993fa4bdeb0bc2d64ab (patch) | |
tree | 49f2955d8ab1031630c119eac62d963c218350e1 /appc-inbound | |
parent | 34a0aee0ba91e8cda9ca94b8442d8645baf995b7 (diff) |
added test cases to DBServiceTest.java
to increase code coverage
Issue-ID: APPC-1086
Change-Id: I149ad0ee6354822fcb9712fe12ad22885b65cf8e
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-inbound')
-rw-r--r-- | appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/dbservices/DBServiceTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/dbservices/DBServiceTest.java b/appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/dbservices/DBServiceTest.java index 9d4740356..2ca39bc73 100644 --- a/appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/dbservices/DBServiceTest.java +++ b/appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/dbservices/DBServiceTest.java @@ -381,5 +381,26 @@ public class DBServiceTest { assertTrue(result); } + @Test + public void testProcessConfigureActionDg() throws SvcLogicException { + MockDBService dbService = MockDBService.initialise(true); + SvcLogicContext ctx = new SvcLogicContext(); + dbService.processConfigureActionDg(ctx, true); + } + + @Test + public void testUpdateProtocolReference() throws SvcLogicException { + MockDBService dbService = MockDBService.initialise(); + SvcLogicContext ctx = new SvcLogicContext(); + ctx.setAttribute("test", "test"); + String vnfType = "testVnf"; + String protocol = "testProtocol"; + String action = "testAction"; + String actionLevel = "testActionLevel"; + String template = "testTemplateData"; + dbService.updateProtocolReference(ctx, vnfType, protocol, action, actionLevel, template); + + } + } |