summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-08-20 15:43:34 +0530
committerTakamune Cho <tc012c@att.com>2018-08-20 23:41:10 +0000
commit9d1e990eadaad1a907d9e34f126f5a7326f6bbd3 (patch)
tree8c75e00557a497674c090aeae11d0b7b23fb06cc
parent89e8b994334df1611c21a77eaf084ac8f3e038bb (diff)
added test to cover catch portion of exception
to increase code coverage Issue-ID: APPC-1086 Change-Id: I91dcb8497ad2d5fe88238f1979f413584803d000 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
-rw-r--r--appc-config/appc-config-params/provider/src/test/java/org/onap/sdnc/config/params/parser/TestPropertyDefinitionNode.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/appc-config/appc-config-params/provider/src/test/java/org/onap/sdnc/config/params/parser/TestPropertyDefinitionNode.java b/appc-config/appc-config-params/provider/src/test/java/org/onap/sdnc/config/params/parser/TestPropertyDefinitionNode.java
index 2fdc90ac3..b4e9bc5fe 100644
--- a/appc-config/appc-config-params/provider/src/test/java/org/onap/sdnc/config/params/parser/TestPropertyDefinitionNode.java
+++ b/appc-config/appc-config-params/provider/src/test/java/org/onap/sdnc/config/params/parser/TestPropertyDefinitionNode.java
@@ -6,7 +6,7 @@
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
- * Modification Copyright (C) 2018 IBM
+ * Modifications Copyright (C) 2018 IBM
* =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -171,6 +171,14 @@ public class TestPropertyDefinitionNode {
}
+ @Test(expected = SvcLogicException.class)
+ public void testMergeJsonDataCatchPortion() throws Exception {
+ Map<String, String> inParams = new HashMap<String, String>();
+ inParams.put(ParamsHandlerConstant.INPUT_PARAM_RESPONSE_PRIFIX, "test");
+ SvcLogicContext ctx = new SvcLogicContext();
+ propertyDefinitionNode.mergeJsonData(inParams, ctx);
+ }
+
@Test
public void testArtificatTransformer() throws Exception {
ArtificatTransformer transformer = new ArtificatTransformer();