camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r800654 - in /camel/trunk/components/camel-cxf/src/test: java/org/apache/camel/component/cxf/jaxrs/CxfRsProducerTest.java resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringProducer.xml
Date Tue, 04 Aug 2009 01:58:59 GMT
Author: ningjiang
Date: Tue Aug  4 01:58:58 2009
New Revision: 800654

URL: http://svn.apache.org/viewvc?rev=800654&view=rev
Log:
Updated the unit test for demoing the JAXRS Http Centrical API

Modified:
    camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducerTest.java
    camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringProducer.xml

Modified: camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducerTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducerTest.java?rev=800654&r1=800653&r2=800654&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducerTest.java
(original)
+++ camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducerTest.java
Tue Aug  4 01:58:58 2009
@@ -37,7 +37,7 @@
     @Test
     public void testGetConstumerWithClientProxyAPI() {
         // START SNIPPET: example
-        Exchange exchange = template.send("direct:start", new Processor() {
+        Exchange exchange = template.send("direct://proxy", new Processor() {
 
             public void process(Exchange exchange) throws Exception {
                 exchange.setPattern(ExchangePattern.InOut);
@@ -65,7 +65,7 @@
     @Test
     public void testGetConstumerWithHttpCentralClientAPI() {
      // START SNIPPET: example-http
-        Exchange exchange = template.send("direct:start", new Processor() {
+        Exchange exchange = template.send("direct://http", new Processor() {
 
             public void process(Exchange exchange) throws Exception {
                 exchange.setPattern(ExchangePattern.InOut);

Modified: camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringProducer.xml
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringProducer.xml?rev=800654&r1=800653&r2=800654&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringProducer.xml
(original)
+++ camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringProducer.xml
Tue Aug  4 01:58:58 2009
@@ -36,13 +36,19 @@
   
   <bean id="customerService" class="org.apache.camel.component.cxf.jaxrs.testbean.CustomerService"
/>
 
-  <cxf:rsClient id="rsClient" address="http://localhost:9002"
+  <cxf:rsClient id="rsClientProxy" address="http://localhost:9002"
     serviceClass="org.apache.camel.component.cxf.jaxrs.testbean.CustomerService"/>
+   
+  <cxf:rsClient id="rsClientHttp" address="http://localhost:9002"/>
 
   <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
     <route>
-       <from uri="direct:start"/>
-       <to uri="cxfrs://bean://rsClient"/>
+       <from uri="direct://proxy"/>
+       <to uri="cxfrs://bean://rsClientProxy"/>
+    </route>
+    <route>
+       <from uri="direct://http"/>
+       <to uri="cxfrs://bean://rsClientHttp"/>
     </route>
   </camelContext>
 



Mime
View raw message