From da8e30dfae8e992b95c6eadbc65f4764a02e802a Mon Sep 17 00:00:00 2001 From: n-jay Date: Wed, 8 Mar 2023 00:52:15 +0530 Subject: [PATCH 1/3] Rename injected parameter placeholder name --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index d1eb48472..8f1649707 100644 --- a/pom.xml +++ b/pom.xml @@ -287,9 +287,9 @@ file:src/test/resources/esbservice.wsdl esbserviceSOAP11port_http - http://localhost:9001/soap/LBService1 - http://localhost:9002/soap/LBService1 - http://localhost:9003/soap/LBService1 + http://localhost:9001/soap/LBService1 + http://localhost:9002/soap/LBService1 + http://localhost:9003/soap/LBService1 test From cf3db0ee612663f3608f2015e5b0d7a471efffec Mon Sep 17 00:00:00 2001 From: n-jay Date: Wed, 8 Mar 2023 00:52:34 +0530 Subject: [PATCH 2/3] Update placeholder name --- .../xml/endpoints/LoadBalanceEndpointSerializationTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/core/src/test/java/org/apache/synapse/config/xml/endpoints/LoadBalanceEndpointSerializationTest.java b/modules/core/src/test/java/org/apache/synapse/config/xml/endpoints/LoadBalanceEndpointSerializationTest.java index 832dc532f..88ff4ae2a 100644 --- a/modules/core/src/test/java/org/apache/synapse/config/xml/endpoints/LoadBalanceEndpointSerializationTest.java +++ b/modules/core/src/test/java/org/apache/synapse/config/xml/endpoints/LoadBalanceEndpointSerializationTest.java @@ -60,17 +60,17 @@ public void testLoadBalanceEndpointScenarioOneWithParameterInjection() throws Ex "" + "" + "" + - "
" + + "
" + "" + "
" + "" + "" + - "
" + + "
" + "" + "
" + "" + "" + - "
" + + "
" + "" + "
" + "" + From edfeae6d620ab9cf555379cb6780ef0b7cb09f60 Mon Sep 17 00:00:00 2001 From: n-jay Date: Mon, 20 Mar 2023 17:53:08 +0530 Subject: [PATCH 3/3] Add unit tests for AddressURI component of Recipient list endpoints --- ...ecipientListEndpointSerializationTest.java | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/modules/core/src/test/java/org/apache/synapse/config/xml/endpoints/RecipientListEndpointSerializationTest.java b/modules/core/src/test/java/org/apache/synapse/config/xml/endpoints/RecipientListEndpointSerializationTest.java index 5d82ff044..f27c099c8 100644 --- a/modules/core/src/test/java/org/apache/synapse/config/xml/endpoints/RecipientListEndpointSerializationTest.java +++ b/modules/core/src/test/java/org/apache/synapse/config/xml/endpoints/RecipientListEndpointSerializationTest.java @@ -54,6 +54,35 @@ public void testRecipientListEndpointScenarioOne()throws Exception { assertTrue(compare(serializedOut, inputElement)); } + public void testRecipientListEndpointScenarioOneWithParameterInjection() throws Exception { + String inputXml = "" + + "" + + "" + + "
" + + "" + + "
" + + "
" + + "" + + "
" + + "" + + "
" + + "
" + + "" + + "
" + + "" + + "
" + + "
" + + "
" + + "
"; + + OMElement inputElement = createOMElement(inputXml); + Endpoint endpoint = RecipientListEndpointFactory.getEndpointFromElement( + inputElement,true,null); + OMElement serializedOut = RecipientListEndpointSerializer.getElementFromEndpoint(endpoint); + + assertTrue(compare(serializedOut, inputElement)); + } + public void testRecipientListEndpointScenarioTwo()throws Exception { String inputXml = "" + "" +