diff options
author | 2017-09-26 13:01:50 +0530 | |
---|---|---|
committer | 2017-09-27 18:21:41 +0000 | |
commit | d8b7a6a745bf861c896360950a6e4d41742cb9b4 (patch) | |
tree | 7cb15b6452c453aef1b3a2ad0bf80a7d14bbeb4a /sliPluginUtils/provider/src/test | |
parent | 3458e16a7f0c9b48337a295359cda65423dbd587 (diff) |
Add unit test for SliStringUtils
*Made quotedOrNull method public
This is done for accessing this in ut
*Added a unit test for the SliStringUtils.quotedOrNull()
This is done for increasing code coverage
Issue-Id: CCSDK-106
Change-Id: I9d74c6645256227b23beded5179fbb28ac3d3c04
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
Diffstat (limited to 'sliPluginUtils/provider/src/test')
-rw-r--r-- | sliPluginUtils/provider/src/test/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtilsTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sliPluginUtils/provider/src/test/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtilsTest.java b/sliPluginUtils/provider/src/test/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtilsTest.java index 72b3264e..96c6ae4a 100644 --- a/sliPluginUtils/provider/src/test/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtilsTest.java +++ b/sliPluginUtils/provider/src/test/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtilsTest.java @@ -91,6 +91,12 @@ public class SliStringUtilsTest { } @Test + public final void testQuotedOrNull() throws SvcLogicException { + //param.put("nullString",null); + assertEquals("NULL",SliStringUtils.quotedOrNULL(null)); + } + + @Test public void equalsIgnoreCaseTrue() throws SvcLogicException { String sourceString = "HeLlOwORLD"; String targetSTring = "HELLOWORLD"; |