From 438650c3a958c9176db3720204ec1ff9af94fc3a Mon Sep 17 00:00:00 2001 From: vasraz Date: Tue, 29 Aug 2023 15:29:59 +0100 Subject: Improve handling 'empty'/null string in Service fields Signed-off-by: Vasyl Razinkov Change-Id: Ib301280fe1be2896e2d80e208349ac3c4ff763ec Issue-ID: SDC-4608 --- .../org/openecomp/sdc/common/test/CommonUtilsTest.java | 8 -------- .../openecomp/sdc/common/util/ValidationUtilsTest.java | 18 ------------------ 2 files changed, 26 deletions(-) (limited to 'common-app-api/src/test/java/org') diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/test/CommonUtilsTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/test/CommonUtilsTest.java index 73d8c116e2..ca9cc0b068 100644 --- a/common-app-api/src/test/java/org/openecomp/sdc/common/test/CommonUtilsTest.java +++ b/common-app-api/src/test/java/org/openecomp/sdc/common/test/CommonUtilsTest.java @@ -224,14 +224,6 @@ public class CommonUtilsTest { } - @Test - public void validateStringNotEmptyTest() { - assertTrue(ValidationUtils.validateStringNotEmpty("fsdlfsdlk")); - assertFalse(ValidationUtils.validateStringNotEmpty("")); - assertFalse(!ValidationUtils.validateStringNotEmpty(" ")); - assertFalse(!ValidationUtils.validateStringNotEmpty(" ")); - } - @Test public void validateVendorNameTest() { assertTrue(ValidationUtils.validateVendorName("fsdlfsdlk")); 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 e7aad96f60..3408c684de 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 @@ -525,24 +525,6 @@ public class ValidationUtilsTest { assertFalse(result); } - @Test - public void checkValidateStringNotEmptyReturnsFalseIfStringIsNotEmpty() { - final String testString = "test"; - - boolean result = ValidationUtils.validateStringNotEmpty(testString); - - assertTrue(result); - } - - @Test - public void checkValidateStringNotEmptyReturnsFTrueIfStringIsEmpty() { - final String testString = ""; - - boolean result = ValidationUtils.validateStringNotEmpty(testString); - - assertFalse(result); - } - @Test public void checkValidateVendorNameReturnsTrueIfNameFitsPattern() { final String testVendorName = "testVendor"; -- cgit 1.2.3-korg