From b8e3cdb6befca46e71fdafa0add72cd76b6251cb Mon Sep 17 00:00:00 2001 From: Rupinder Date: Tue, 19 May 2020 17:57:48 +0530 Subject: added assert statement in dbServiceTest.java Issue-ID: APPC-1859 Change-Id: If145687a4cd9f5a71b9f0da2a65f5211d6653ec0 Signed-off-by: Rupinder --- .../onap/appc/artifact/handler/dbservices/DBServiceTest.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 c71f56d11..4c8b7123b 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 @@ -57,6 +57,7 @@ public class DBServiceTest { ctx.setAttribute("test", "test"); int internalVersion = 1; dbService.saveArtifacts(ctx, internalVersion); + assertNotNull(dbService); } @Test @@ -76,6 +77,7 @@ public class DBServiceTest { boolean isUpdate = true; ctx.setAttribute(SdcArtifactHandlerConstants.DOWNLOAD_DG_REFERENCE, "Reference"); dbService.processConfigActionDg(ctx, isUpdate); + assertNotNull(ctx); } @@ -96,6 +98,7 @@ public class DBServiceTest { String artifactId = "TestArtifact"; String yangContents = "TestYangContents"; dbService.updateYangContents(ctx, artifactId, yangContents); + assertNotNull(yangContents); } @Test @@ -109,6 +112,7 @@ public class DBServiceTest { String actionLevel = "testActionLevel"; String template = "testTemplateData"; dbService.insertProtocolReference(ctx, vnfType, protocol, action, actionLevel, template); + assertNotNull(template); } @@ -123,6 +127,7 @@ public class DBServiceTest { String actionLevel = "testActionLevel"; String template = "testTemplateData"; dbService.insertProtocolReference(ctx, vnfType, protocol, action, actionLevel, template); + assertNotNull(action); } @Test @@ -132,6 +137,7 @@ public class DBServiceTest { ctx.setAttribute("test", "test"); boolean isUpdate = true; dbService.processDownloadDgReference(ctx, isUpdate); + assertNotNull(dbService); } @Test @@ -141,6 +147,7 @@ public class DBServiceTest { ctx.setAttribute("test", "test"); boolean isUpdate = false; dbService.processVnfcReference(ctx, isUpdate); + assertNotNull(dbService); } @Test @@ -257,6 +264,7 @@ public class DBServiceTest { ctx.setAttribute("test", "test"); String db = "db"; dbService.getArtifactID(ctx, db); + assertNotNull(dbService); } @Test @@ -436,6 +444,7 @@ public class DBServiceTest { MockDBService dbService = MockDBService.initialise(true); SvcLogicContext ctx = new SvcLogicContext(); dbService.processConfigureActionDg(ctx, true); + assertNotNull(ctx); } @Test @@ -449,7 +458,7 @@ public class DBServiceTest { String actionLevel = "testActionLevel"; String template = "testTemplateData"; dbService.updateProtocolReference(ctx, vnfType, protocol, action, actionLevel, template); - + assertNotNull(vnfType); } } -- cgit 1.2.3-korg