From: amshegokar Date: Fri, 23 Mar 2018 13:07:01 +0000 (+0530) Subject: Unit test coverage X-Git-Tag: v1.3.0~110 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=appc.git;a=commitdiff_plain;h=704b11680b5688f1697029ec77dbcf6b550eb3e0 Unit test coverage Unit test coverage for Constants.java Sonar-Link: https://sonar.onap.org/code?id=org.onap.appc%3Aappc&selected=org.onap.appc%3Aappc-iaas-adapter-bundle%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Fadapter%2Futils%2FConstants.java Change-Id: Ied122a1838111897079243f0e444a9eef1b2f162 Issue-ID: APPC-778 Signed-off-by: amshegokar --- diff --git a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/test/java/org/onap/appc/adapter/utils/ConstantsTest.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/test/java/org/onap/appc/adapter/utils/ConstantsTest.java new file mode 100644 index 000000000..1de4f731b --- /dev/null +++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/test/java/org/onap/appc/adapter/utils/ConstantsTest.java @@ -0,0 +1,34 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : APPC +* ================================================================================ +* Copyright 2018 TechMahindra +*================================================================================= +* 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========================================================= +*/ +package org.onap.appc.adapter.utils; + +import org.junit.Assert; +import org.junit.Test; + +public class ConstantsTest { + private Constants constants=new Constants(); + + @Test + public void testConstants() { + Assert.assertNotNull(constants.ADAPTER_NAME); + Assert.assertEquals("Appc IaaS Adapter",constants.ADAPTER_NAME); + } + +}