Added oparent to sdc main
[sdc.git] / asdctool / src / test / java / org / openecomp / sdc / asdctool / impl / validator / utils / ReportManagerTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.asdctool.impl.validator.utils;
22
23 import org.junit.Test;
24 import org.openecomp.sdc.be.dao.jsongraph.GraphVertex;
25
26 import java.util.Set;
27
28 public class ReportManagerTest {
29
30         @Test
31         public void testReportTaskEnd() throws Exception {
32                 String vertexId = "";
33                 String taskName = "";
34                 VertexResult result = null;
35
36                 // default test
37                 ReportManager.reportTaskEnd(vertexId, taskName, result);
38         }
39
40         @Test
41         public void testAddFailedVertex() throws Exception {
42                 String taskName = "";
43                 String vertexId = "";
44
45                 // default test
46                 ReportManager.addFailedVertex(taskName, vertexId);
47         }
48
49         @Test(expected = NullPointerException.class)
50         public void testPrintValidationTaskStatus() throws Exception {
51                 GraphVertex vertexScanned = null;
52                 String taskName = "";
53                 boolean success = false;
54
55                 // default test
56                 ReportManager.printValidationTaskStatus(vertexScanned, taskName, success);
57         }
58
59         @Test(expected = NullPointerException.class)
60         public void testWriteReportLineToFile() throws Exception {
61                 String message = "";
62
63                 // default test
64                 ReportManager.writeReportLineToFile(message);
65         }
66
67         @Test(expected = NullPointerException.class)
68         public void testReportValidatorTypeSummary() throws Exception {
69                 String validatorName = "";
70                 Set<String> failedTasksNames = null;
71                 Set<String> successTasksNames = null;
72
73                 // default test
74                 ReportManager.reportValidatorTypeSummary(validatorName, failedTasksNames, successTasksNames);
75         }
76
77         @Test(expected = NullPointerException.class)
78         public void testReportStartValidatorRun() throws Exception {
79                 String validatorName = "";
80                 int componenentsNum = 0;
81
82                 // default test
83                 ReportManager.reportStartValidatorRun(validatorName, componenentsNum);
84         }
85
86         @Test(expected = NullPointerException.class)
87         public void testReportStartTaskRun() throws Exception {
88                 GraphVertex vertex = null;
89                 String taskName = "";
90
91                 // default test
92                 ReportManager.reportStartTaskRun(vertex, taskName);
93         }
94
95         @Test(expected = NullPointerException.class)
96         public void testReportEndOfToolRun() throws Exception {
97
98                 // default test
99                 ReportManager.reportEndOfToolRun();
100         }
101
102         @Test(expected = NullPointerException.class)
103         public void testPrintAllResults() throws Exception {
104
105                 // default test
106                 ReportManager.printAllResults();
107         }
108 }