ctx.setAttribute("test", "test");
int internalVersion = 1;
dbService.saveArtifacts(ctx, internalVersion);
+ assertNotNull(dbService);
}
@Test
boolean isUpdate = true;
ctx.setAttribute(SdcArtifactHandlerConstants.DOWNLOAD_DG_REFERENCE, "Reference");
dbService.processConfigActionDg(ctx, isUpdate);
+ assertNotNull(ctx);
}
String artifactId = "TestArtifact";
String yangContents = "TestYangContents";
dbService.updateYangContents(ctx, artifactId, yangContents);
+ assertNotNull(yangContents);
}
@Test
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);
+ assertNotNull(action);
}
@Test
ctx.setAttribute("test", "test");
boolean isUpdate = true;
dbService.processDownloadDgReference(ctx, isUpdate);
+ assertNotNull(dbService);
}
@Test
ctx.setAttribute("test", "test");
boolean isUpdate = false;
dbService.processVnfcReference(ctx, isUpdate);
+ assertNotNull(dbService);
}
@Test
ctx.setAttribute("test", "test");
String db = "db";
dbService.getArtifactID(ctx, db);
+ assertNotNull(dbService);
}
@Test
MockDBService dbService = MockDBService.initialise(true);
SvcLogicContext ctx = new SvcLogicContext();
dbService.processConfigureActionDg(ctx, true);
+ assertNotNull(ctx);
}
@Test
String actionLevel = "testActionLevel";
String template = "testTemplateData";
dbService.updateProtocolReference(ctx, vnfType, protocol, action, actionLevel, template);
-
+ assertNotNull(vnfType);
}
}