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 2009/02/10 09:09:50 UTC

svn commit: r742880 - /camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpToFileTest.java

Author: davsclaus
Date: Tue Feb 10 08:09:50 2009
New Revision: 742880

URL: http://svn.apache.org/viewvc?rev=742880&view=rev
Log:
Fixed build failure

Modified:
    camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpToFileTest.java

Modified: camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpToFileTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpToFileTest.java?rev=742880&r1=742879&r2=742880&view=diff
==============================================================================
--- camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpToFileTest.java (original)
+++ camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpToFileTest.java Tue Feb 10 08:09:50 2009
@@ -33,7 +33,7 @@
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedBodiesReceived("Hello World");
 
-        Object out = template.sendBody("http://localhost:8080/myworld", "Hello World");
+        Object out = template.sendBody("http://localhost:9080/myworld", "Hello World");
 
         String response = context.getTypeConverter().convertTo(String.class, out);
         assertEquals("Response from Jetty", "We got the file", response);
@@ -48,7 +48,7 @@
         assertTrue("File should exists", file.exists());
 
         String content = IOConverter.toString(file);
-        assertEquals("File conent", "Hello World", content);
+        assertEquals("File content", "Hello World", content);
     }
 
     @Override
@@ -61,7 +61,7 @@
         return new RouteBuilder() {
             public void configure() throws Exception {
                 // put the incoming data on the seda queue and return a fixed response that we got the file
-                from("jetty:http://localhost:8080/myworld").to("seda:in").setBody(constant("We got the file"));
+                from("jetty:http://localhost:9080/myworld").convertBodyTo(String.class).to("seda:in").setBody(constant("We got the file"));
 
                 // store the content from the queue as a file
                 from("seda:in")