Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ public void testLoadBalanceEndpointScenarioOneWithParameterInjection() throws Ex
"<session type=\"simpleClientSession\"/>" +
"<loadbalance algorithm=\"org.apache.synapse.endpoints.algorithms.RoundRobin\">" +
"<endpoint>" +
"<address uri=\"$SYSTEM:LOAD_BALANCE_TEST_ENDPOINT1\">" +
"<address uri=\"$SYSTEM:SOAP_TEST_ENDPOINT1\">" +
"<enableAddressing/>" +
"</address>" +
"</endpoint>" +
"<endpoint>" +
"<address uri=\"$SYSTEM:LOAD_BALANCE_TEST_ENDPOINT2\">" +
"<address uri=\"$SYSTEM:SOAP_TEST_ENDPOINT2\">" +
"<enableAddressing/>" +
"</address>" +
"</endpoint>" +
"<endpoint>" +
"<address uri=\"$SYSTEM:LOAD_BALANCE_TEST_ENDPOINT3\">" +
"<address uri=\"$SYSTEM:SOAP_TEST_ENDPOINT3\">" +
"<enableAddressing/>" +
"</address>" +
"</endpoint>" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,35 @@ public void testRecipientListEndpointScenarioOne()throws Exception {
assertTrue(compare(serializedOut, inputElement));
}

public void testRecipientListEndpointScenarioOneWithParameterInjection() throws Exception {
String inputXml = "<endpoint xmlns=\"http://ws.apache.org/ns/synapse\">" +
"<recipientlist>" +
"<endpoint>" +
"<address uri=\"$SYSTEM:SOAP_TEST_ENDPOINT1\">" +
"<enableAddressing/>" +
"</address>" +
"</endpoint>" +
"<endpoint>" +
"<address uri=\"$SYSTEM:SOAP_TEST_ENDPOINT2\">" +
"<enableAddressing/>" +
"</address>" +
"</endpoint>" +
"<endpoint>" +
"<address uri=\"$SYSTEM:SOAP_TEST_ENDPOINT3\">" +
"<enableAddressing/>" +
"</address>" +
"</endpoint>" +
"</recipientlist>" +
"</endpoint>";

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 = "<endpoint xmlns=\"http://ws.apache.org/ns/synapse\">" +
"<recipientlist>" +
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@
<WSDL_SERVICE_TEST_URI>file:src/test/resources/esbservice.wsdl</WSDL_SERVICE_TEST_URI>
<WSDL_SERVICE_TEST_PORT>esbserviceSOAP11port_http</WSDL_SERVICE_TEST_PORT>

<LOAD_BALANCE_TEST_ENDPOINT1>http://localhost:9001/soap/LBService1</LOAD_BALANCE_TEST_ENDPOINT1>
<LOAD_BALANCE_TEST_ENDPOINT2>http://localhost:9002/soap/LBService1</LOAD_BALANCE_TEST_ENDPOINT2>
<LOAD_BALANCE_TEST_ENDPOINT3>http://localhost:9003/soap/LBService1</LOAD_BALANCE_TEST_ENDPOINT3>
<SOAP_TEST_ENDPOINT1>http://localhost:9001/soap/LBService1</SOAP_TEST_ENDPOINT1>
<SOAP_TEST_ENDPOINT2>http://localhost:9002/soap/LBService1</SOAP_TEST_ENDPOINT2>
<SOAP_TEST_ENDPOINT3>http://localhost:9003/soap/LBService1</SOAP_TEST_ENDPOINT3>
<scope>test</scope>
</environmentVariables>
</configuration>
Expand Down