Added oparent to sdc main
[sdc.git] / common-app-api / src / test / java / org / openecomp / sdc / common / api / HealthCheckInfoTest.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.common.api;
22
23 import org.junit.Test;
24 import org.openecomp.sdc.common.api.HealthCheckInfo.HealthCheckStatus;
25
26 import java.util.List;
27
28 public class HealthCheckInfoTest {
29
30         private HealthCheckInfo createTestSubject() {
31                 return new HealthCheckInfo("", HealthCheckStatus.UP, "", "");
32         }
33
34         @Test
35         public void testGetHealthCheckComponent() throws Exception {
36                 HealthCheckInfo testSubject;
37                 String result;
38
39                 // default test
40                 testSubject = createTestSubject();
41                 result = testSubject.getHealthCheckComponent();
42         }
43
44         @Test
45         public void testGetHealthCheckStatus() throws Exception {
46                 HealthCheckInfo testSubject;
47                 HealthCheckStatus result;
48
49                 // default test
50                 testSubject = createTestSubject();
51                 result = testSubject.getHealthCheckStatus();
52         }
53
54         @Test
55         public void testGetComponentsInfo() throws Exception {
56                 HealthCheckInfo testSubject;
57                 List<HealthCheckInfo> result;
58
59                 // default test
60                 testSubject = createTestSubject();
61                 result = testSubject.getComponentsInfo();
62         }
63
64         @Test
65         public void testSetComponentsInfo() throws Exception {
66                 HealthCheckInfo testSubject;
67                 List<HealthCheckInfo> componentsInfo = null;
68
69                 // default test
70                 testSubject = createTestSubject();
71                 testSubject.setComponentsInfo(componentsInfo);
72         }
73
74         @Test
75         public void testGetVersion() throws Exception {
76                 HealthCheckInfo testSubject;
77                 String result;
78
79                 // default test
80                 testSubject = createTestSubject();
81                 result = testSubject.getVersion();
82         }
83
84         @Test
85         public void testSetVersion() throws Exception {
86                 HealthCheckInfo testSubject;
87                 String version = "";
88
89                 // default test
90                 testSubject = createTestSubject();
91                 testSubject.setVersion(version);
92         }
93
94         @Test
95         public void testGetDescription() throws Exception {
96                 HealthCheckInfo testSubject;
97                 String result;
98
99                 // default test
100                 testSubject = createTestSubject();
101                 result = testSubject.getDescription();
102         }
103
104         @Test
105         public void testToString() throws Exception {
106                 HealthCheckInfo testSubject;
107                 String result;
108
109                 // default test
110                 testSubject = createTestSubject();
111                 result = testSubject.toString();
112         }
113
114         @Test
115         public void testMain() throws Exception {
116                 String[] args = new String[] { "" };
117
118                 // default test
119                 HealthCheckInfo.main(args);
120         }
121 }