From: Sandeep J Date: Tue, 21 Aug 2018 10:16:29 +0000 (+0530) Subject: added test case to TestPropertyDefinitionNode.java X-Git-Tag: 1.4.0~64 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F31%2F61531%2F2;p=appc.git added test case to TestPropertyDefinitionNode.java to increase code coverage Issue-ID: APPC-1086 Change-Id: I3c5b31a1127a364512b7787e28b1cdc7191a9138 Signed-off-by: Sandeep J --- 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 inParams = new HashMap(); + SvcLogicContext ctx = new SvcLogicContext(); + propertyDefinitionNode.validateParams(inParams, ctx); + } }