diff options
Diffstat (limited to 'appc-config')
-rw-r--r-- | appc-config/appc-config-generator/provider/src/test/java/org/onap/sdnc/config/generator/tool/TestDataTool.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/appc-config/appc-config-generator/provider/src/test/java/org/onap/sdnc/config/generator/tool/TestDataTool.java b/appc-config/appc-config-generator/provider/src/test/java/org/onap/sdnc/config/generator/tool/TestDataTool.java index 6b13d18a8..8e2c85509 100644 --- a/appc-config/appc-config-generator/provider/src/test/java/org/onap/sdnc/config/generator/tool/TestDataTool.java +++ b/appc-config/appc-config-generator/provider/src/test/java/org/onap/sdnc/config/generator/tool/TestDataTool.java @@ -6,7 +6,7 @@ * ================================================================================ * Copyright (C) 2017 Amdocs * ============================================================================= - * Modifications Copyright (C) 2018 IBM. + * Modifications Copyright (C) 2018-2019 IBM. * ============================================================================= * Modifications Copyright (C) 2018 Ericsson * ============================================================================= @@ -103,6 +103,16 @@ public class TestDataTool { assertEquals("test\\0", EscapeUtils.escapeString(strng)); assertEquals(null, EscapeUtils.escapeString(null)); } + + @Test + public void testEscapeSqlForNullString() { + assertEquals(null, EscapeUtils.escapeSql(null)); + } + + @Test + public void testUnescapeSqlForNullString() { + assertEquals(null, EscapeUtils.unescapeSql(null)); + } @Test public void testgetData() throws Exception { |