summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-08-21 15:46:29 +0530
committerTakamune Cho <tc012c@att.com>2018-08-22 17:16:29 +0000
commit169ba5f8c6c129a2e79f805b5a407a6da7c9328a (patch)
treeb6a3cc24b612fd5676e657b0530ac50280366a70
parent57e9272d241280a2283386096bd0b5745b707345 (diff)
added test case to TestPropertyDefinitionNode.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: I3c5b31a1127a364512b7787e28b1cdc7191a9138 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.java9
1 files changed, 9 insertions, 0 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 b4e9bc5fe..6a9fe552d 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
@@ -206,5 +206,14 @@ public class TestPropertyDefinitionNode {
inParams.put(ParamsHandlerConstant.INPUT_PARAM_SYSTEM_NAME, "INSTAR");
propertyDefinitionNode.validateParams(inParams, ctx);
}
+
+ @Test(expected=SvcLogicException.class)
+ public void testValidateParamsForEmptyParams() throws Exception
+ {
+ PropertyDefinitionNode propertyDefinitionNode = new PropertyDefinitionNode();
+ Map<String, String> inParams = new HashMap<String, String>();
+ SvcLogicContext ctx = new SvcLogicContext();
+ propertyDefinitionNode.validateParams(inParams, ctx);
+ }
}