2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.common.api;
23 import org.junit.Test;
24 import org.openecomp.sdc.common.api.HealthCheckInfo.HealthCheckStatus;
26 import java.util.List;
28 public class HealthCheckInfoTest {
30 private HealthCheckInfo createTestSubject() {
31 return new HealthCheckInfo("", HealthCheckStatus.UP, "", "");
35 public void testGetHealthCheckComponent() throws Exception {
36 HealthCheckInfo testSubject;
40 testSubject = createTestSubject();
41 result = testSubject.getHealthCheckComponent();
45 public void testGetHealthCheckStatus() throws Exception {
46 HealthCheckInfo testSubject;
47 HealthCheckStatus result;
50 testSubject = createTestSubject();
51 result = testSubject.getHealthCheckStatus();
55 public void testGetComponentsInfo() throws Exception {
56 HealthCheckInfo testSubject;
57 List<HealthCheckInfo> result;
60 testSubject = createTestSubject();
61 result = testSubject.getComponentsInfo();
65 public void testSetComponentsInfo() throws Exception {
66 HealthCheckInfo testSubject;
67 List<HealthCheckInfo> componentsInfo = null;
70 testSubject = createTestSubject();
71 testSubject.setComponentsInfo(componentsInfo);
75 public void testGetVersion() throws Exception {
76 HealthCheckInfo testSubject;
80 testSubject = createTestSubject();
81 result = testSubject.getVersion();
85 public void testSetVersion() throws Exception {
86 HealthCheckInfo testSubject;
90 testSubject = createTestSubject();
91 testSubject.setVersion(version);
95 public void testGetDescription() throws Exception {
96 HealthCheckInfo testSubject;
100 testSubject = createTestSubject();
101 result = testSubject.getDescription();
105 public void testToString() throws Exception {
106 HealthCheckInfo testSubject;
110 testSubject = createTestSubject();
111 result = testSubject.toString();
115 public void testMain() throws Exception {
116 String[] args = new String[] { "" };
119 HealthCheckInfo.main(args);