X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=common-app-api%2Fsrc%2Ftest%2Fjava%2Forg%2Fopenecomp%2Fsdc%2Fcommon%2Fapi%2FHealthCheckInfoTest.java;h=9e0757d4de5dae15037b0e5efcd585ce8cd57b41;hb=refs%2Fchanges%2F71%2F118671%2F2;hp=d37e1ccbb708ae56564bebf7bbd9773715afe00a;hpb=51d50f0ef642e0f996a1c8b8d2ef4838bdfec892;p=sdc.git diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/api/HealthCheckInfoTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/api/HealthCheckInfoTest.java index d37e1ccbb7..9e0757d4de 100644 --- a/common-app-api/src/test/java/org/openecomp/sdc/common/api/HealthCheckInfoTest.java +++ b/common-app-api/src/test/java/org/openecomp/sdc/common/api/HealthCheckInfoTest.java @@ -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 +}