1 package org.openecomp.sdc.asdctool.impl.validator.utils;
4 import org.openecomp.sdc.be.dao.jsongraph.GraphVertex;
8 public class ReportManagerTest {
11 public void testReportTaskEnd() throws Exception {
14 VertexResult result = null;
17 ReportManager.reportTaskEnd(vertexId, taskName, result);
21 public void testAddFailedVertex() throws Exception {
26 ReportManager.addFailedVertex(taskName, vertexId);
29 @Test(expected = NullPointerException.class)
30 public void testPrintValidationTaskStatus() throws Exception {
31 GraphVertex vertexScanned = null;
33 boolean success = false;
36 ReportManager.printValidationTaskStatus(vertexScanned, taskName, success);
39 @Test(expected = NullPointerException.class)
40 public void testWriteReportLineToFile() throws Exception {
44 ReportManager.writeReportLineToFile(message);
47 @Test(expected = NullPointerException.class)
48 public void testReportValidatorTypeSummary() throws Exception {
49 String validatorName = "";
50 Set<String> failedTasksNames = null;
51 Set<String> successTasksNames = null;
54 ReportManager.reportValidatorTypeSummary(validatorName, failedTasksNames, successTasksNames);
57 @Test(expected = NullPointerException.class)
58 public void testReportStartValidatorRun() throws Exception {
59 String validatorName = "";
60 int componenentsNum = 0;
63 ReportManager.reportStartValidatorRun(validatorName, componenentsNum);
66 @Test(expected = NullPointerException.class)
67 public void testReportStartTaskRun() throws Exception {
68 GraphVertex vertex = null;
72 ReportManager.reportStartTaskRun(vertex, taskName);
75 @Test(expected = NullPointerException.class)
76 public void testReportEndOfToolRun() throws Exception {
79 ReportManager.reportEndOfToolRun();
82 @Test(expected = NullPointerException.class)
83 public void testPrintAllResults() throws Exception {
86 ReportManager.printAllResults();