aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/dbservices/DBServiceTest.java11
1 files changed, 10 insertions, 1 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 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);
}
}