summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'common-app-api/src/test')
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/util/ValidationUtilsTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/util/ValidationUtilsTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/util/ValidationUtilsTest.java
index 2d5122a13f..e7aad96f60 100644
--- a/common-app-api/src/test/java/org/openecomp/sdc/common/util/ValidationUtilsTest.java
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/util/ValidationUtilsTest.java
@@ -724,6 +724,24 @@ public class ValidationUtilsTest {
}
@Test
+ public void validateNormalizeFileNameFor3gppYangModule() {
+ final String testName = "_3gpptestfile";
+
+ String result = ValidationUtils.normalizeFileName(testName);
+
+ assertEquals(result, testName);
+ }
+
+ @Test
+ public void validateNormalizeFileNameStripLeadingUnderscore() {
+ final String testName = "_testfile";
+
+ String result = ValidationUtils.normalizeFileName(testName);
+
+ assertEquals(result, "testfile");
+ }
+
+ @Test
public void checkValidateUrlReturnsTrueIfURLIsValid() {
final String testUrl = "http://test.co/valid/url/";