diff options
author | Dan Timoney <dt5972@att.com> | 2018-09-27 19:21:28 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-27 19:21:28 +0000 |
commit | 6f094ba9114abf9983bb6de3b365919b88df3af3 (patch) | |
tree | c1c53f6793d49b19c7e69bfa1e3ad89c4add455d /sliPluginUtils/provider/src | |
parent | 818593ca0c06cd0a779882d7d4212feb55873026 (diff) | |
parent | c3e894237d04ca28c5506c5f0f6783d54add8ebf (diff) |
Merge "added test case to SliStringUtilsTest"
Diffstat (limited to 'sliPluginUtils/provider/src')
-rw-r--r-- | sliPluginUtils/provider/src/test/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtilsTest.java | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/sliPluginUtils/provider/src/test/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtilsTest.java b/sliPluginUtils/provider/src/test/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtilsTest.java index 4c665121..9bf851d5 100644 --- a/sliPluginUtils/provider/src/test/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtilsTest.java +++ b/sliPluginUtils/provider/src/test/java/org/onap/ccsdk/sli/core/slipluginutils/SliStringUtilsTest.java @@ -3,7 +3,9 @@ * ONAP : CCSDK * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights - * reserved. + * reserved. + * ================================================================================ + * 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. @@ -19,9 +21,6 @@ * ============LICENSE_END========================================================= */ -/** - * - */ package org.onap.ccsdk.sli.core.slipluginutils; import static org.hamcrest.Matchers.equalTo; @@ -30,7 +29,7 @@ import static org.junit.Assert.assertThat; import java.util.HashMap; import java.util.Map; - + import org.junit.Before; import org.junit.Test; import org.onap.ccsdk.sli.core.sli.SvcLogicContext; @@ -273,5 +272,14 @@ public class SliStringUtilsTest { SliStringUtils.urlEncode(param, ctx); assertEquals("102%2FGE100%2FSNJSCAMCJP8%2FSNJSCAMCJT4", ctx.getAttribute(outputPath)); } + + @Test + public void testXmlEscapeText() + { + param.put("source", "102/GE100/SNJSCAMCJP8/SNJSCAMCJT4"); + param.put("target", "target"); + SliStringUtils.xmlEscapeText(param,ctx); + assertEquals("102/GE100/SNJSCAMCJP8/SNJSCAMCJT4",ctx.getAttribute("target")); + } } |