From 78028f3b588241200e31b71b8190e9926af626e9 Mon Sep 17 00:00:00 2001 From: Ofir Sonsino Date: Mon, 9 Oct 2017 11:08:05 +0300 Subject: Improve SONAR coverage Change-Id: Ib36c2e6df9fe100a301b89769078c7a06d3a9ae5 Issue-ID: VID-72 Signed-off-by: Ofir Sonsino --- .../org/openecomp/vid/properties/TestSuite.java | 11 ++++++++ .../vid/properties/VidPropertiesTest.java | 31 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 vid-app-common/src/test/java/org/openecomp/vid/properties/TestSuite.java create mode 100644 vid-app-common/src/test/java/org/openecomp/vid/properties/VidPropertiesTest.java (limited to 'vid-app-common/src/test/java/org/openecomp/vid/properties') diff --git a/vid-app-common/src/test/java/org/openecomp/vid/properties/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/properties/TestSuite.java new file mode 100644 index 00000000..b2993084 --- /dev/null +++ b/vid-app-common/src/test/java/org/openecomp/vid/properties/TestSuite.java @@ -0,0 +1,11 @@ +package org.openecomp.vid.properties; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +@RunWith(Suite.class) +@Suite.SuiteClasses( + +{ VidPropertiesTest.class }) +public class TestSuite { // nothing +} diff --git a/vid-app-common/src/test/java/org/openecomp/vid/properties/VidPropertiesTest.java b/vid-app-common/src/test/java/org/openecomp/vid/properties/VidPropertiesTest.java new file mode 100644 index 00000000..7d318c74 --- /dev/null +++ b/vid-app-common/src/test/java/org/openecomp/vid/properties/VidPropertiesTest.java @@ -0,0 +1,31 @@ +package org.openecomp.vid.properties; + +import org.junit.Test; + + +public class VidPropertiesTest { + + private VidProperties createTestSubject() { + return new VidProperties(); + } + + + @Test + public void testGetAsdcModelNamespace() throws Exception { + String result; + + // default test + result = VidProperties.getAsdcModelNamespace(); + } + + + @Test + public void testGetPropertyWithDefault() throws Exception { + String propName = ""; + String defaultValue = ""; + String result; + + // default test + result = VidProperties.getPropertyWithDefault(propName, defaultValue); + } +} \ No newline at end of file -- cgit 1.2.3-korg