You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2009/03/23 15:24:29 UTC

svn commit: r757400 - /camel/branches/camel-1.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyWithXPathChoiceTest.java

Author: janstey
Date: Mon Mar 23 14:24:24 2009
New Revision: 757400

URL: http://svn.apache.org/viewvc?rev=757400&view=rev
Log:
Fix unit test error

Modified:
    camel/branches/camel-1.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyWithXPathChoiceTest.java

Modified: camel/branches/camel-1.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyWithXPathChoiceTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyWithXPathChoiceTest.java?rev=757400&r1=757399&r2=757400&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyWithXPathChoiceTest.java (original)
+++ camel/branches/camel-1.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyWithXPathChoiceTest.java Mon Mar 23 14:24:24 2009
@@ -47,7 +47,7 @@
     }
 
     private void sendBody(String body) {
-        template.sendBody("http://localhost:9080/myworld", body);
+        template.sendBody("http://localhost:9091/myworld", body);
     }
 
     @Override
@@ -64,7 +64,7 @@
             public void configure() {
                 // Need a convertBodyTo processor here or we may get an error
                 // that we are at the end of the stream
-                from("jetty:http://localhost:9080/myworld").choice()
+                from("jetty:http://localhost:9091/myworld").convertBodyTo(String.class).choice()
                   .when().xpath("/one").to("mock:x")
                   .when().xpath("/two").to("mock:y")
                   .otherwise().to("mock:z");