Some minor refinements in CCSDK SLI Core module
*Remove useless braces while logging exception stack trace
*Register all DG nodes in SvcLogicParser Test file
Change-Id: I7916bec20e36e1def15c24806da2f7e01e79bf4b
Issue-Id: CCSDK-106
Signed-off-by: Ramu N <ramu.n@huawei.com>
diff --git a/sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/SvcLogicParser.java b/sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/SvcLogicParser.java
index ee192d6..a33ba47 100644
--- a/sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/SvcLogicParser.java
+++ b/sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/SvcLogicParser.java
@@ -385,7 +385,7 @@
saxParser.parse(fileName, new SvcLogicHandler(graphs, store));
} catch (Exception e) {
- LOGGER.error("Parsing failed {}", e);
+ LOGGER.error("Parsing failed ", e);
String msg = e.getMessage();
if (msg != null) {
throw new SvcLogicException("Compiler error: " + fileName + " @ " + msg);
@@ -412,7 +412,7 @@
try {
SvcLogicParser.load(xmlfile, store);
} catch (Exception e) {
- LOGGER.error("Load failed {}", e);
+ LOGGER.error("Load failed ", e);
}
} else {
SvcLogicParser.usage();
diff --git a/sli/common/src/test/java/org/onap/ccsdk/sli/core/sli/ITCaseSvcLogicParser.java b/sli/common/src/test/java/org/onap/ccsdk/sli/core/sli/ITCaseSvcLogicParser.java
index 8bf748a..7af4c1c 100644
--- a/sli/common/src/test/java/org/onap/ccsdk/sli/core/sli/ITCaseSvcLogicParser.java
+++ b/sli/common/src/test/java/org/onap/ccsdk/sli/core/sli/ITCaseSvcLogicParser.java
@@ -96,6 +96,13 @@
store.registerNodeType("release");
store.registerNodeType("for");
store.registerNodeType("set");
+ store.registerNodeType("call");
+ store.registerNodeType("delete");
+ store.registerNodeType("execute");
+ store.registerNodeType("notify");
+ store.registerNodeType("save");
+ store.registerNodeType("update");
+ store.registerNodeType("break");
}
@Before