diff options
Diffstat (limited to 'common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/test')
-rw-r--r-- | common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/test/java/org/openecomp/config/ConfigurationUtilsTest.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/test/java/org/openecomp/config/ConfigurationUtilsTest.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/test/java/org/openecomp/config/ConfigurationUtilsTest.java deleted file mode 100644 index b770d8677b..0000000000 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/test/java/org/openecomp/config/ConfigurationUtilsTest.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.openecomp.config; - -import org.junit.Test; - -import java.util.Arrays; -import java.util.List; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; - -public class ConfigurationUtilsTest { - @Test - public void testCommaList() { - List list = Arrays.asList("1", "2", 3); - String commaSeparatedList = ConfigurationUtils.getCommaSeparatedList(list); - list.forEach(o -> assertTrue(commaSeparatedList.contains(o.toString()))); - } - - @Test - public void testCommaListWithNullAndEmptyStrings() { - List list = Arrays.asList(null, "", " "); - String commaSeparatedList = ConfigurationUtils.getCommaSeparatedList(list); - assertTrue(commaSeparatedList.isEmpty()); - } - - @Test - public void testGetArrayClassFunction() { - assertEquals(String[].class , ConfigurationUtils.getArrayClass(String.class)); - assertNull(ConfigurationUtils.getArrayClass(ConfigurationUtilsTest.class)); - } -}
\ No newline at end of file |