diff options
author | Michael Lando <ml636r@att.com> | 2018-07-29 16:13:45 +0300 |
---|---|---|
committer | Michael Lando <ml636r@att.com> | 2018-07-29 16:20:34 +0300 |
commit | 5b593496b8f1b8e8be8d7d2dbcc223332e65a49b (patch) | |
tree | 2f9dfc45191e723da69cf74be7829784e9741b94 /common-app-api/src/test/java/org/openecomp/sdc/common/util/GeneralUtilityTest.java | |
parent | 9200382f2ce7b4bb729aa287d0878004b2d2b4f9 (diff) |
re base code
Change-Id: I12a5ca14a6d8a87e9316b9ff362eb131105f98a5
Issue-ID: SDC-1566
Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'common-app-api/src/test/java/org/openecomp/sdc/common/util/GeneralUtilityTest.java')
-rw-r--r-- | common-app-api/src/test/java/org/openecomp/sdc/common/util/GeneralUtilityTest.java | 124 |
1 files changed, 0 insertions, 124 deletions
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/util/GeneralUtilityTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/util/GeneralUtilityTest.java deleted file mode 100644 index ebfffe572a..0000000000 --- a/common-app-api/src/test/java/org/openecomp/sdc/common/util/GeneralUtilityTest.java +++ /dev/null @@ -1,124 +0,0 @@ -package org.openecomp.sdc.common.util; - -import java.util.List; - -import org.junit.Assert; -import org.junit.Test; - - -public class GeneralUtilityTest { - - private GeneralUtility createTestSubject() { - return new GeneralUtility(); - } - - - @Test - public void testGenerateTextFile() throws Exception { - String fileName = ""; - String fileData = ""; - boolean result; - - // default test - result = GeneralUtility.generateTextFile(fileName, fileData); - } - - - @Test - public void testIsBase64Encoded() throws Exception { - byte[] data = new byte[] { ' ' }; - boolean result; - - // default test - result = GeneralUtility.isBase64Encoded(data); - } - - - @Test - public void testIsBase64Encoded_1() throws Exception { - String str = ""; - boolean result; - - // default test - result = GeneralUtility.isBase64Encoded(str); - } - - - @Test - public void testIsExceedingLimit() throws Exception { - String str = ""; - int limit = 0; - boolean result; - - // test 1 - str = null; - result = GeneralUtility.isExceedingLimit(str, limit); - Assert.assertEquals(false, result); - - // test 2 - str = ""; - result = GeneralUtility.isExceedingLimit(str, limit); - Assert.assertEquals(false, result); - } - - - @Test - public void testIsExceedingLimit_1() throws Exception { - List<String> strList = null; - int limit = 0; - int delimiterLength = 0; - boolean result; - - // test 1 - strList = null; - result = GeneralUtility.isExceedingLimit(strList, limit, delimiterLength); - Assert.assertEquals(false, result); - } - - - @Test - public void testGetFilenameExtension() throws Exception { - String fileName = ""; - String result; - - // test 1 - fileName = null; - result = GeneralUtility.getFilenameExtension(fileName); - Assert.assertEquals("", result); - - // test 2 - fileName = ""; - result = GeneralUtility.getFilenameExtension(fileName); - Assert.assertEquals("", result); - } - - - @Test - public void testCalculateMD5Base64EncodedByByteArray() throws Exception { - byte[] payload = new byte[] { ' ' }; - String result; - - // default test - result = GeneralUtility.calculateMD5Base64EncodedByByteArray(payload); - } - - - @Test - public void testCalculateMD5Base64EncodedByString() throws Exception { - String data = ""; - String result; - - // default test - result = GeneralUtility.calculateMD5Base64EncodedByString(data); - } - - - @Test - public void testIsEmptyString() throws Exception { - String str = ""; - boolean result; - - // default test - result = GeneralUtility.isEmptyString(str); - } -}
\ No newline at end of file |