aboutsummaryrefslogtreecommitdiffstats
path: root/appc-adapters/appc-iaas-adapter
diff options
context:
space:
mode:
authoramshegokar <AS00500801@techmahindra.com>2018-03-23 18:37:01 +0530
committerTakamune Cho <tc012c@att.com>2018-03-23 15:33:59 +0000
commit704b11680b5688f1697029ec77dbcf6b550eb3e0 (patch)
tree22d32967669c20c22ccddb3a94258385be8109fa /appc-adapters/appc-iaas-adapter
parent6afc0a5ab5cd73c6e1b0bc410dcf05666ec56f2c (diff)
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 <AS00500801@techmahindra.com>
Diffstat (limited to 'appc-adapters/appc-iaas-adapter')
-rw-r--r--appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/test/java/org/onap/appc/adapter/utils/ConstantsTest.java34
1 files changed, 34 insertions, 0 deletions
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);
+ }
+
+}