You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2011/10/20 09:45:46 UTC

svn commit: r1186644 - in /camel/trunk/tests/camel-itest/src/test: java/org/apache/camel/itest/greeter/ resources/org/apache/camel/itest/greeter/

Author: davsclaus
Date: Thu Oct 20 07:45:45 2011
New Revision: 1186644

URL: http://svn.apache.org/viewvc?rev=1186644&view=rev
Log:
CAMEL-4503: Added unit tests to reproduce the issue.

Added:
    camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/MulticastCxfTest.java
    camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxf2Test.java
    camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxfTest.java   (contents, props changed)
      - copied, changed from r1186169, camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/CxfToJmsInOutTest.java
    camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/MulticastCxfTest-context.xml
    camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/RecipientListCxf2Test-context.xml
    camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/RecipientListCxfTest-context.xml   (contents, props changed)
      - copied, changed from r1186169, camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/CxfToJmsInOutTest-context.xml

Added: camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/MulticastCxfTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/MulticastCxfTest.java?rev=1186644&view=auto
==============================================================================
--- camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/MulticastCxfTest.java (added)
+++ camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/MulticastCxfTest.java Thu Oct 20 07:45:45 2011
@@ -0,0 +1,67 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.itest.greeter;
+
+import org.apache.camel.EndpointInject;
+import org.apache.camel.component.cxf.common.message.CxfConstants;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.apache.camel.test.junit4.CamelSpringTestSupport;
+import org.junit.Test;
+import org.springframework.context.support.AbstractApplicationContext;
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+public class MulticastCxfTest extends CamelSpringTestSupport {
+
+    @EndpointInject(uri = "mock:reply")
+    protected MockEndpoint replyEndpoint;
+
+    @EndpointInject(uri = "mock:reply2")
+    protected MockEndpoint reply2Endpoint;
+
+    @EndpointInject(uri = "mock:output")
+    protected MockEndpoint outputEndpoint;
+
+    @Override
+    protected AbstractApplicationContext createApplicationContext() {
+        return new ClassPathXmlApplicationContext("org/apache/camel/itest/greeter/MulticastCxfTest-context.xml");
+    }
+
+    @Test
+    public void testMulticastCXF() throws Exception {
+        replyEndpoint.expectedBodiesReceived("Hello Willem", "Hello Claus", "Hello Jonathan");
+        reply2Endpoint.expectedBodiesReceived("Bye Willem", "Bye Claus", "Bye Jonathan");
+        outputEndpoint.expectedBodiesReceived("Bye Willem", "Bye Claus", "Bye Jonathan");
+
+        // returns the last message from the recipient list
+        String out = template.requestBodyAndHeader("direct:start", "Willem", CxfConstants.OPERATION_NAME, "greetMe", String.class);
+        assertEquals("Bye Willem", out);
+
+        // call again to ensure that works also
+        // returns the last message from the recipient list
+        String out2 = template.requestBodyAndHeader("direct:start", "Claus", CxfConstants.OPERATION_NAME, "greetMe", String.class);
+        assertEquals("Bye Claus", out2);
+
+        // and call again to ensure that it really works also
+        // returns the last message from the recipient list
+        String out3 = template.requestBodyAndHeader("direct:start", "Jonathan", CxfConstants.OPERATION_NAME, "greetMe", String.class);
+        assertEquals("Bye Jonathan", out3);
+
+        replyEndpoint.assertIsSatisfied();
+        reply2Endpoint.assertIsSatisfied();
+        outputEndpoint.assertIsSatisfied();
+    }
+}

Added: camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxf2Test.java
URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxf2Test.java?rev=1186644&view=auto
==============================================================================
--- camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxf2Test.java (added)
+++ camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxf2Test.java Thu Oct 20 07:45:45 2011
@@ -0,0 +1,90 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.itest.greeter;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.camel.EndpointInject;
+import org.apache.camel.component.cxf.common.message.CxfConstants;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.apache.camel.test.junit4.CamelSpringTestSupport;
+import org.junit.Test;
+import org.springframework.context.support.AbstractApplicationContext;
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+public class RecipientListCxf2Test extends CamelSpringTestSupport {
+
+    @Override
+    protected AbstractApplicationContext createApplicationContext() {
+        return new ClassPathXmlApplicationContext("org/apache/camel/itest/greeter/RecipientListCxf2Test-context.xml");
+    }
+
+    @EndpointInject(uri = "mock:reply")
+    protected MockEndpoint replyEndpoint;
+
+    @EndpointInject(uri = "mock:reply2")
+    protected MockEndpoint reply2Endpoint;
+
+    @EndpointInject(uri = "mock:output")
+    protected MockEndpoint outputEndpoint;
+
+    @Test
+    public void testRecipientListCXF2() throws Exception {
+        replyEndpoint.expectedBodiesReceived("Hello Willem", "Hello Jonathan", "Hello Freeman");
+        reply2Endpoint.expectedBodiesReceived("Bye Claus", "Bye Jonathan", "Bye Freeman");
+        outputEndpoint.expectedBodiesReceived("Hello Willem", "Bye Claus", "Bye Jonathan", "Hello Freeman");
+
+        Map<String, Object> headers = new HashMap<String, Object>();
+        headers.put(CxfConstants.OPERATION_NAME, "greetMe");
+        headers.put("foo", "cxf:bean:clientEndpoint?address=http://localhost:9002/SoapContext/SoapPort");
+
+        // returns the last message from the recipient list
+        Object out = template.requestBodyAndHeaders("direct:start", "Willem", headers, String.class);
+        assertEquals("Hello Willem", out);
+
+        // change foo headers
+        headers.put("foo", "cxf:bean:clientEndpoint?address=http://localhost:9003/SoapContext/SoapPort");
+
+        // call again to ensure that works also
+        // returns the last message from the recipient list
+        String out2 = template.requestBodyAndHeaders("direct:start", "Claus", headers, String.class);
+        assertEquals("Bye Claus", out2);
+
+        // change foo headers again
+        headers.put("foo", "cxf:bean:clientEndpoint?address=http://localhost:9003/SoapContext/SoapPort"
+                + ",cxf:bean:clientEndpoint?address=http://localhost:9004/SoapContext/SoapPort");
+
+        // and call again to ensure that it really works also
+        // returns the last message from the recipient list
+        String out3 = template.requestBodyAndHeaders("direct:start", "Jonathan", headers, String.class);
+        assertEquals("Bye Jonathan", out3);
+
+        // change foo headers again
+        headers.put("foo", "cxf:bean:clientEndpoint?address=http://localhost:9004/SoapContext/SoapPort"
+                + ",cxf:bean:clientEndpoint?address=http://localhost:9003/SoapContext/SoapPort");
+
+        // and call again to ensure that it really works also
+        // returns the last message from the recipient list
+        String out4 = template.requestBodyAndHeaders("direct:start", "Freeman", headers, String.class);
+        assertEquals("Hello Freeman", out4);
+
+        replyEndpoint.assertIsSatisfied();
+        reply2Endpoint.assertIsSatisfied();
+        outputEndpoint.assertIsSatisfied();
+    }
+}

Copied: camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxfTest.java (from r1186169, camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/CxfToJmsInOutTest.java)
URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxfTest.java?p2=camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxfTest.java&p1=camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/CxfToJmsInOutTest.java&r1=1186169&r2=1186644&rev=1186644&view=diff
==============================================================================
--- camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/CxfToJmsInOutTest.java (original)
+++ camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxfTest.java Thu Oct 20 07:45:45 2011
@@ -16,44 +16,73 @@
  */
 package org.apache.camel.itest.greeter;
 
+import java.util.HashMap;
+import java.util.Map;
+
 import org.apache.camel.EndpointInject;
-import org.apache.camel.ProducerTemplate;
 import org.apache.camel.component.cxf.common.message.CxfConstants;
 import org.apache.camel.component.mock.MockEndpoint;
+import org.apache.camel.test.junit4.CamelSpringTestSupport;
 import org.junit.Test;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.test.context.ContextConfiguration;
-import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
+import org.springframework.context.support.AbstractApplicationContext;
+import org.springframework.context.support.ClassPathXmlApplicationContext;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
+public class RecipientListCxfTest extends CamelSpringTestSupport {
 
-@ContextConfiguration
-public class CxfToJmsInOutTest extends AbstractJUnit4SpringContextTests {
+    @Override
+    protected AbstractApplicationContext createApplicationContext() {
+        return new ClassPathXmlApplicationContext("org/apache/camel/itest/greeter/RecipientListCxfTest-context.xml");
+    }
 
-    @Autowired
-    protected ProducerTemplate template;
+    @EndpointInject(uri = "mock:reply")
+    protected MockEndpoint replyEndpoint;
 
-    @EndpointInject(uri = "mock:cxf.input")
-    protected MockEndpoint inputEndpoint;
+    @EndpointInject(uri = "mock:reply2")
+    protected MockEndpoint reply2Endpoint;
 
-    @EndpointInject(uri = "mock:jms.output")
+    @EndpointInject(uri = "mock:output")
     protected MockEndpoint outputEndpoint;
 
     @Test
-    public void testCxfToJmsInOut() throws Exception {
-        assertNotNull(template);
-        assertNotNull(inputEndpoint);
-        assertNotNull(outputEndpoint);
-
-        inputEndpoint.expectedBodiesReceived("Willem");
-        outputEndpoint.expectedBodiesReceived("Hello Willem");
+    public void testRecipientListCXF() throws Exception {
+        replyEndpoint.expectedBodiesReceived("Hello Willem", "Hello Jonathan", "Hello Freeman");
+        reply2Endpoint.expectedBodiesReceived("Bye Claus", "Bye Jonathan", "Bye Freeman");
+        outputEndpoint.expectedBodiesReceived("Hello Willem", "Bye Claus", "Bye Jonathan", "Hello Freeman");
+
+        Map<String, Object> headers = new HashMap<String, Object>();
+        headers.put(CxfConstants.OPERATION_NAME, "greetMe");
+        headers.put("foo", "cxf:bean:serviceEndpoint");
 
-        String out = template.requestBodyAndHeader("cxf://bean:serviceEndpoint", "Willem", CxfConstants.OPERATION_NAME, "greetMe", String.class);
+        // returns the last message from the recipient list
+        Object out = template.requestBodyAndHeaders("direct:start", "Willem", headers, String.class);
         assertEquals("Hello Willem", out);
 
-        inputEndpoint.assertIsSatisfied();
+        // change foo headers
+        headers.put("foo", "cxf:bean:serviceEndpoint2");
+
+        // call again to ensure that works also
+        // returns the last message from the recipient list
+        String out2 = template.requestBodyAndHeaders("direct:start", "Claus", headers, String.class);
+        assertEquals("Bye Claus", out2);
+
+        // change foo headers again
+        headers.put("foo", "cxf:bean:serviceEndpoint,cxf:bean:serviceEndpoint2");
+
+        // and call again to ensure that it really works also
+        // returns the last message from the recipient list
+        String out3 = template.requestBodyAndHeaders("direct:start", "Jonathan", headers, String.class);
+        assertEquals("Bye Jonathan", out3);
+
+        // change foo headers again
+        headers.put("foo", "cxf:bean:serviceEndpoint2,cxf:bean:serviceEndpoint");
+
+        // and call again to ensure that it really works also
+        // returns the last message from the recipient list
+        String out4 = template.requestBodyAndHeaders("direct:start", "Freeman", headers, String.class);
+        assertEquals("Hello Freeman", out4);
+
+        replyEndpoint.assertIsSatisfied();
+        reply2Endpoint.assertIsSatisfied();
         outputEndpoint.assertIsSatisfied();
     }
-
 }

Propchange: camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxfTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxfTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/MulticastCxfTest-context.xml
URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/MulticastCxfTest-context.xml?rev=1186644&view=auto
==============================================================================
--- camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/MulticastCxfTest-context.xml (added)
+++ camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/MulticastCxfTest-context.xml Thu Oct 20 07:45:45 2011
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:cxf="http://camel.apache.org/schema/cxf"
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+       http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd
+       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
+    ">
+
+  <import resource="classpath:META-INF/cxf/cxf.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>
+
+  <cxf:cxfEndpoint id="serviceEndpoint" address="http://localhost:9000/SoapContext/SoapPort"
+                   wsdlURL="wsdl/hello_world.wsdl"
+                   serviceClass="org.apache.hello_world_soap_http.Greeter"
+                   endpointName="s:SoapOverHttp"
+                   serviceName="s:SOAPService"
+                   xmlns:s="http://apache.org/hello_world_soap_http">
+    <cxf:properties>
+      <entry key="setDefaultBus" value="false"/>
+    </cxf:properties>
+  </cxf:cxfEndpoint>
+
+  <cxf:cxfEndpoint id="serviceEndpoint2" address="http://localhost:9001/SoapContext/SoapPort"
+                   wsdlURL="wsdl/hello_world.wsdl"
+                   serviceClass="org.apache.hello_world_soap_http.Greeter"
+                   endpointName="s:SoapOverHttp"
+                   serviceName="s:SOAPService"
+                   xmlns:s="http://apache.org/hello_world_soap_http">
+    <cxf:properties>
+      <entry key="setDefaultBus" value="false"/>
+    </cxf:properties>
+  </cxf:cxfEndpoint>
+
+  <camelContext xmlns="http://camel.apache.org/schema/spring">
+
+    <route>
+      <from uri="direct:start"/>
+      <multicast>
+        <to uri="cxf:bean:serviceEndpoint"/>
+        <to uri="cxf:bean:serviceEndpoint2"/>
+      </multicast>
+      <to uri="mock:output"/>
+    </route>
+
+    <route>
+      <from uri="cxf:bean:serviceEndpoint"/>
+      <transform>
+        <simple>Hello ${body}</simple>
+      </transform>
+      <to uri="log:reply"/>
+      <to uri="mock:reply"/>
+    </route>
+
+    <route>
+      <from uri="cxf:bean:serviceEndpoint2"/>
+      <transform>
+        <simple>Bye ${body}</simple>
+      </transform>
+      <to uri="log:reply2"/>
+      <to uri="mock:reply2"/>
+    </route>
+
+  </camelContext>
+
+</beans>

Added: camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/RecipientListCxf2Test-context.xml
URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/RecipientListCxf2Test-context.xml?rev=1186644&view=auto
==============================================================================
--- camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/RecipientListCxf2Test-context.xml (added)
+++ camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/RecipientListCxf2Test-context.xml Thu Oct 20 07:45:45 2011
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:cxf="http://camel.apache.org/schema/cxf"
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+       http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd
+       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
+    ">
+
+  <import resource="classpath:META-INF/cxf/cxf.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>
+
+  <!-- to use from client -->
+  <cxf:cxfEndpoint id="clientEndpoint"
+                   wsdlURL="wsdl/hello_world.wsdl"
+                   serviceClass="org.apache.hello_world_soap_http.Greeter"
+                   endpointName="s:SoapOverHttp"
+                   serviceName="s:SOAPService"
+                   xmlns:s="http://apache.org/hello_world_soap_http">
+    <cxf:properties>
+      <entry key="setDefaultBus" value="false"/>
+    </cxf:properties>
+  </cxf:cxfEndpoint>
+
+  <cxf:cxfEndpoint id="serviceEndpoint" address="http://localhost:9002/SoapContext/SoapPort"
+                   wsdlURL="wsdl/hello_world.wsdl"
+                   serviceClass="org.apache.hello_world_soap_http.Greeter"
+                   endpointName="s:SoapOverHttp"
+                   serviceName="s:SOAPService"
+                   xmlns:s="http://apache.org/hello_world_soap_http">
+    <cxf:properties>
+      <entry key="setDefaultBus" value="false"/>
+    </cxf:properties>
+  </cxf:cxfEndpoint>
+
+  <cxf:cxfEndpoint id="serviceEndpoint2" address="http://localhost:9003/SoapContext/SoapPort"
+                   wsdlURL="wsdl/hello_world.wsdl"
+                   serviceClass="org.apache.hello_world_soap_http.Greeter"
+                   endpointName="s:SoapOverHttp"
+                   serviceName="s:SOAPService"
+                   xmlns:s="http://apache.org/hello_world_soap_http">
+    <cxf:properties>
+      <entry key="setDefaultBus" value="false"/>
+    </cxf:properties>
+  </cxf:cxfEndpoint>
+
+  <camelContext xmlns="http://camel.apache.org/schema/spring">
+
+    <route>
+      <from uri="direct:start"/>
+      <recipientList>
+        <header>foo</header>
+      </recipientList>
+      <to uri="log:output"/>
+      <to uri="mock:output"/>
+    </route>
+
+    <route>
+      <from uri="cxf:bean:serviceEndpoint"/>
+      <transform>
+        <simple>Hello ${body}</simple>
+      </transform>
+      <to uri="log:reply"/>
+      <to uri="mock:reply"/>
+    </route>
+
+    <route>
+      <from uri="cxf:bean:serviceEndpoint2"/>
+      <transform>
+        <simple>Bye ${body}</simple>
+      </transform>
+      <to uri="log:reply2"/>
+      <to uri="mock:reply2"/>
+    </route>
+
+  </camelContext>
+
+</beans>

Copied: camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/RecipientListCxfTest-context.xml (from r1186169, camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/CxfToJmsInOutTest-context.xml)
URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/RecipientListCxfTest-context.xml?p2=camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/RecipientListCxfTest-context.xml&p1=camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/CxfToJmsInOutTest-context.xml&r1=1186169&r2=1186644&rev=1186644&view=diff
==============================================================================
--- camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/CxfToJmsInOutTest-context.xml (original)
+++ camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/RecipientListCxfTest-context.xml Thu Oct 20 07:45:45 2011
@@ -24,47 +24,60 @@
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
     ">
 
-    <import resource="classpath:META-INF/cxf/cxf.xml"/>
-    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
-    <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>
-
-    <cxf:cxfEndpoint id="serviceEndpoint" address="http://localhost:9000/SoapContext/SoapPort"
-                     wsdlURL="wsdl/hello_world.wsdl"
-                     serviceClass="org.apache.hello_world_soap_http.Greeter"
-                     endpointName="s:SoapOverHttp"
-                     serviceName="s:SOAPService"
-                     xmlns:s="http://apache.org/hello_world_soap_http">
-        <cxf:properties>
-            <entry key="setDefaultBus" value="false"/>
-        </cxf:properties>
-    </cxf:cxfEndpoint>
-
-    <bean id="prepareRequest" class="org.apache.camel.itest.greeter.PrepareRequest"/>
-    <bean id="prepareResponse" class="org.apache.camel.itest.greeter.PrepareResponse"/>
-
-    <bean id="jms" class="org.apache.activemq.camel.component.ActiveMQComponent">
-        <property name="brokerURL" value="vm://localhost?broker.persistent=false"/>
-    </bean>
-
-    <camelContext xmlns="http://camel.apache.org/schema/spring">
-
-        <route>
-            <from uri="cxf://bean:serviceEndpoint"/>
-            <to uri="log:input"/>
-            <to uri="mock:cxf.input"/>
-            <to uri="jms:queue:bridge.output?replyTo=output.reply"/>
-            <to uri="log:reply"/>
-        </route>
-
-        <route>
-            <from uri="jms:queue:bridge.output"/>
-            <to uri="log:jms"/>
-            <setBody>
-                <simple>Hello ${body}</simple>
-            </setBody>
-            <to uri="mock:jms.output"/>
-        </route>
+  <import resource="classpath:META-INF/cxf/cxf.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>
+
+  <cxf:cxfEndpoint id="serviceEndpoint" address="http://localhost:9002/SoapContext/SoapPort"
+                   wsdlURL="wsdl/hello_world.wsdl"
+                   serviceClass="org.apache.hello_world_soap_http.Greeter"
+                   endpointName="s:SoapOverHttp"
+                   serviceName="s:SOAPService"
+                   xmlns:s="http://apache.org/hello_world_soap_http">
+    <cxf:properties>
+      <entry key="setDefaultBus" value="false"/>
+    </cxf:properties>
+  </cxf:cxfEndpoint>
+
+  <cxf:cxfEndpoint id="serviceEndpoint2" address="http://localhost:9003/SoapContext/SoapPort"
+                   wsdlURL="wsdl/hello_world.wsdl"
+                   serviceClass="org.apache.hello_world_soap_http.Greeter"
+                   endpointName="s:SoapOverHttp"
+                   serviceName="s:SOAPService"
+                   xmlns:s="http://apache.org/hello_world_soap_http">
+    <cxf:properties>
+      <entry key="setDefaultBus" value="false"/>
+    </cxf:properties>
+  </cxf:cxfEndpoint>
+
+  <camelContext xmlns="http://camel.apache.org/schema/spring">
+
+    <route>
+      <from uri="direct:start"/>
+      <recipientList parallelProcessing="true">
+        <header>foo</header>
+      </recipientList>
+      <to uri="mock:output"/>
+    </route>
+
+    <route>
+      <from uri="cxf:bean:serviceEndpoint"/>
+      <transform>
+        <simple>Hello ${body}</simple>
+      </transform>
+      <to uri="log:reply"/>
+      <to uri="mock:reply"/>
+    </route>
+
+    <route>
+      <from uri="cxf:bean:serviceEndpoint2"/>
+      <transform>
+        <simple>Bye ${body}</simple>
+      </transform>
+      <to uri="log:reply2"/>
+      <to uri="mock:reply2"/>
+    </route>
 
-    </camelContext>
+  </camelContext>
 
 </beans>

Propchange: camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/RecipientListCxfTest-context.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/RecipientListCxfTest-context.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: camel/trunk/tests/camel-itest/src/test/resources/org/apache/camel/itest/greeter/RecipientListCxfTest-context.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml