commit | d17fb0101e9901337bb69dec225a9b0ecc005eb5 | [log] [tgz] |
---|---|---|
author | Dan Timoney <dtimoney@att.com> | Wed Sep 27 19:31:23 2017 +0000 |
committer | Gerrit Code Review <gerrit@onap.org> | Wed Sep 27 19:31:23 2017 +0000 |
tree | b4ccac1328f04b415e2da36a248edb5bee92e4d4 | |
parent | d8b7a6a745bf861c896360950a6e4d41742cb9b4 [diff] | |
parent | bebf6ea5839c87799602da01b166000f8b746b86 [diff] |
Merge "Refinements to core"
diff --git a/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtils.java b/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtils.java index 6048c66..0c43f68 100644 --- a/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtils.java +++ b/sliPluginUtils/provider/src/main/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtils.java
@@ -100,7 +100,7 @@ } } - private static String quotedOrNULL( String str ) { + public static String quotedOrNULL( String str ) { return (str == null) ? "NULL" : '"' + str + '"'; }
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 72b3264..96c6ae4 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 @@ } @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";