Issue-ID: APPC-1859
Change-Id: If145687a4cd9f5a71b9f0da2a65f5211d6653ec0
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
ctx.setAttribute("test", "test");
int internalVersion = 1;
dbService.saveArtifacts(ctx, internalVersion);
ctx.setAttribute("test", "test");
int internalVersion = 1;
dbService.saveArtifacts(ctx, internalVersion);
+ assertNotNull(dbService);
boolean isUpdate = true;
ctx.setAttribute(SdcArtifactHandlerConstants.DOWNLOAD_DG_REFERENCE, "Reference");
dbService.processConfigActionDg(ctx, isUpdate);
boolean isUpdate = true;
ctx.setAttribute(SdcArtifactHandlerConstants.DOWNLOAD_DG_REFERENCE, "Reference");
dbService.processConfigActionDg(ctx, isUpdate);
String artifactId = "TestArtifact";
String yangContents = "TestYangContents";
dbService.updateYangContents(ctx, artifactId, yangContents);
String artifactId = "TestArtifact";
String yangContents = "TestYangContents";
dbService.updateYangContents(ctx, artifactId, yangContents);
+ assertNotNull(yangContents);
String actionLevel = "testActionLevel";
String template = "testTemplateData";
dbService.insertProtocolReference(ctx, vnfType, protocol, action, actionLevel, template);
String actionLevel = "testActionLevel";
String template = "testTemplateData";
dbService.insertProtocolReference(ctx, vnfType, protocol, action, actionLevel, template);
+ assertNotNull(template);
String actionLevel = "testActionLevel";
String template = "testTemplateData";
dbService.insertProtocolReference(ctx, vnfType, protocol, action, actionLevel, template);
String actionLevel = "testActionLevel";
String template = "testTemplateData";
dbService.insertProtocolReference(ctx, vnfType, protocol, action, actionLevel, template);
ctx.setAttribute("test", "test");
boolean isUpdate = true;
dbService.processDownloadDgReference(ctx, isUpdate);
ctx.setAttribute("test", "test");
boolean isUpdate = true;
dbService.processDownloadDgReference(ctx, isUpdate);
+ assertNotNull(dbService);
ctx.setAttribute("test", "test");
boolean isUpdate = false;
dbService.processVnfcReference(ctx, isUpdate);
ctx.setAttribute("test", "test");
boolean isUpdate = false;
dbService.processVnfcReference(ctx, isUpdate);
+ assertNotNull(dbService);
ctx.setAttribute("test", "test");
String db = "db";
dbService.getArtifactID(ctx, db);
ctx.setAttribute("test", "test");
String db = "db";
dbService.getArtifactID(ctx, db);
+ assertNotNull(dbService);
MockDBService dbService = MockDBService.initialise(true);
SvcLogicContext ctx = new SvcLogicContext();
dbService.processConfigureActionDg(ctx, true);
MockDBService dbService = MockDBService.initialise(true);
SvcLogicContext ctx = new SvcLogicContext();
dbService.processConfigureActionDg(ctx, true);
String actionLevel = "testActionLevel";
String template = "testTemplateData";
dbService.updateProtocolReference(ctx, vnfType, protocol, action, actionLevel, template);
String actionLevel = "testActionLevel";
String template = "testTemplateData";
dbService.updateProtocolReference(ctx, vnfType, protocol, action, actionLevel, template);
+ assertNotNull(vnfType);