diff options
Diffstat (limited to 'appc-config')
-rw-r--r-- | appc-config/appc-config-params/provider/src/test/java/org/onap/sdnc/config/params/parser/TestPropertyDefinitionNode.java | 14 |
1 files changed, 14 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 6a9fe552d..4c0b60272 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 @@ -215,5 +215,19 @@ public class TestPropertyDefinitionNode { SvcLogicContext ctx = new SvcLogicContext(); propertyDefinitionNode.validateParams(inParams, ctx); } + + @Test + public void testValidateParamsForEmptyConfigParams() throws Exception + { + Map<String, String> inParams = new HashMap<String, String>(); + String jsonData = IOUtils.toString( + TestPropertyDefinitionNode.class.getClassLoader().getResourceAsStream("parser/pd.yaml"), + Charset.defaultCharset()); + inParams.put(ParamsHandlerConstant.INPUT_PARAM_PD_CONTENT, jsonData); + SvcLogicContext ctx = new SvcLogicContext(); + propertyDefinitionNode.validateParams(inParams, ctx); + String status = ctx.getAttribute("status"); + assertEquals(ParamsHandlerConstant.OUTPUT_STATUS_SUCCESS,status); + } } |