Improve test coverage
[sdc.git] / common-app-api / src / test / java / org / openecomp / sdc / common / api / HealthCheckInfoTest.java
index d37e1cc..9e0757d 100644 (file)
@@ -1,18 +1,36 @@
-package org.openecomp.sdc.common.api;
+/*-
+ * ============LICENSE_START=======================================================
+ * SDC
+ * ================================================================================
+ * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
 
-import java.util.List;
+package org.openecomp.sdc.common.api;
 
 import org.junit.Test;
 import org.openecomp.sdc.common.api.HealthCheckInfo.HealthCheckStatus;
 
+import java.util.List;
 
 public class HealthCheckInfoTest {
 
        private HealthCheckInfo createTestSubject() {
-               return new HealthCheckInfo(null, null, "", "");
+               return new HealthCheckInfo("", HealthCheckStatus.UP, "", "");
        }
 
-       
        @Test
        public void testGetHealthCheckComponent() throws Exception {
                HealthCheckInfo testSubject;
@@ -23,7 +41,6 @@ public class HealthCheckInfoTest {
                result = testSubject.getHealthCheckComponent();
        }
 
-       
        @Test
        public void testGetHealthCheckStatus() throws Exception {
                HealthCheckInfo testSubject;
@@ -34,7 +51,6 @@ public class HealthCheckInfoTest {
                result = testSubject.getHealthCheckStatus();
        }
 
-       
        @Test
        public void testGetComponentsInfo() throws Exception {
                HealthCheckInfo testSubject;
@@ -45,7 +61,6 @@ public class HealthCheckInfoTest {
                result = testSubject.getComponentsInfo();
        }
 
-       
        @Test
        public void testSetComponentsInfo() throws Exception {
                HealthCheckInfo testSubject;
@@ -56,7 +71,6 @@ public class HealthCheckInfoTest {
                testSubject.setComponentsInfo(componentsInfo);
        }
 
-       
        @Test
        public void testGetVersion() throws Exception {
                HealthCheckInfo testSubject;
@@ -67,7 +81,6 @@ public class HealthCheckInfoTest {
                result = testSubject.getVersion();
        }
 
-       
        @Test
        public void testSetVersion() throws Exception {
                HealthCheckInfo testSubject;
@@ -78,7 +91,6 @@ public class HealthCheckInfoTest {
                testSubject.setVersion(version);
        }
 
-       
        @Test
        public void testGetDescription() throws Exception {
                HealthCheckInfo testSubject;
@@ -89,7 +101,6 @@ public class HealthCheckInfoTest {
                result = testSubject.getDescription();
        }
 
-       
        @Test
        public void testToString() throws Exception {
                HealthCheckInfo testSubject;
@@ -100,12 +111,4 @@ public class HealthCheckInfoTest {
                result = testSubject.toString();
        }
 
-       
-       @Test
-       public void testMain() throws Exception {
-               String[] args = new String[] { "" };
-
-               // default test
-               HealthCheckInfo.main(args);
-       }
-}
\ No newline at end of file
+}