diff --git a/integration/mediation-tests/tests-mediator-1/src/test/java/org/wso2/carbon/esb/mediator/test/payload/factory/PayloadFactorySynapseExpressionTestCase.java b/integration/mediation-tests/tests-mediator-1/src/test/java/org/wso2/carbon/esb/mediator/test/payload/factory/PayloadFactorySynapseExpressionTestCase.java index 24955ad91a..f8f1b5bf9b 100644 --- a/integration/mediation-tests/tests-mediator-1/src/test/java/org/wso2/carbon/esb/mediator/test/payload/factory/PayloadFactorySynapseExpressionTestCase.java +++ b/integration/mediation-tests/tests-mediator-1/src/test/java/org/wso2/carbon/esb/mediator/test/payload/factory/PayloadFactorySynapseExpressionTestCase.java @@ -147,6 +147,7 @@ public void testPayloadFactoryXMLToJson() throws IOException { String expectedResponse = "{\n" + " \"string\": \"John<\",\n" + " \"escapedObject\": \"catemily\\\\ntini\",\n" + + " \"escapedObject2\": \"\\n dog<\\n John\\\\nWayne\\n \",\n" + " \"object\": {\n" + " \"pet\": {\n" + " \"type\": \"cat\",\n" + @@ -160,6 +161,10 @@ public void testPayloadFactoryXMLToJson() throws IOException { String requestPayload = "\n" + " John<\n" + " catemily\\\\ntini\n" + + " \n" + + " dog<\n" + + " John\\\\nWayne\n" + + " \n" + " true\n" + ""; diff --git a/integration/mediation-tests/tests-mediator-1/src/test/resources/artifacts/ESB/server/repository/deployment/server/synapse-configs/default/api/synapse_expressions_payload_factory.xml b/integration/mediation-tests/tests-mediator-1/src/test/resources/artifacts/ESB/server/repository/deployment/server/synapse-configs/default/api/synapse_expressions_payload_factory.xml index a2e05362a4..75529ee6d2 100644 --- a/integration/mediation-tests/tests-mediator-1/src/test/resources/artifacts/ESB/server/repository/deployment/server/synapse-configs/default/api/synapse_expressions_payload_factory.xml +++ b/integration/mediation-tests/tests-mediator-1/src/test/resources/artifacts/ESB/server/repository/deployment/server/synapse-configs/default/api/synapse_expressions_payload_factory.xml @@ -86,6 +86,7 @@ { "string": "${xpath('//root/customer_name/text()')}", "escapedObject": "${xpath('//root/pet')}", + "escapedObject2": "${xpath('//root/pet2')}", "object": ${xpath('//root/pet')}, "xml": "${var.id}", "json": "${var.special_json}" diff --git a/pom.xml b/pom.xml index 44133dd90c..0e55413bd0 100644 --- a/pom.xml +++ b/pom.xml @@ -1606,7 +1606,7 @@ 2.4.0-b180830.0359 2.3.0 2.3.1 - 4.0.0-wso2v151 + 4.0.0-wso2v154 [4.0.0, 4.0.1) 4.7.215 1.1.3