aboutsummaryrefslogtreecommitdiffstats
path: root/appc-config
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2019-02-07 12:35:57 +0530
committerJoss Armstrong <joss.armstrong@ericsson.com>2019-02-07 15:37:48 +0000
commitbfe4a57e79e9baa04159749c0b6e2647b8db0824 (patch)
treee2a815c30e31e5e7970aff4592b96bd58371aa9c /appc-config
parent5291fa8d2b0929e89c76ee6239864fa205f559b5 (diff)
added test case to TestDataTool.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: I1602078de42c9815fe81b76425939752610446aa Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-config')
-rw-r--r--appc-config/appc-config-generator/provider/src/test/java/org/onap/sdnc/config/generator/tool/TestDataTool.java12
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 {