You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ha...@apache.org on 2009/02/09 19:25:06 UTC

svn commit: r742667 - in /camel/branches/camel-1.x/components/camel-jetty/src/test: java/org/apache/camel/component/jetty/HttpToFileTest.java resources/log4j.properties

Author: hadrian
Date: Mon Feb  9 18:25:06 2009
New Revision: 742667

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

Modified:
    camel/branches/camel-1.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpToFileTest.java
    camel/branches/camel-1.x/components/camel-jetty/src/test/resources/log4j.properties

Modified: camel/branches/camel-1.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpToFileTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpToFileTest.java?rev=742667&r1=742666&r2=742667&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpToFileTest.java (original)
+++ camel/branches/camel-1.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpToFileTest.java Mon Feb  9 18:25:06 2009
@@ -29,7 +29,7 @@
 public class HttpToFileTest extends ContextTestSupport {
 
     public void testToJettyAndSaveToFile() throws Exception {
-        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);
@@ -42,7 +42,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
@@ -55,7 +55,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").transform(constant("We got the file"));
 
                 // store the content from the queue as a file
                 from("seda:in")
@@ -64,5 +64,4 @@
             }
         };
     }
-
 }

Modified: camel/branches/camel-1.x/components/camel-jetty/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-jetty/src/test/resources/log4j.properties?rev=742667&r1=742666&r2=742667&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-jetty/src/test/resources/log4j.properties (original)
+++ camel/branches/camel-1.x/components/camel-jetty/src/test/resources/log4j.properties Mon Feb  9 18:25:06 2009
@@ -18,7 +18,7 @@
 #
 # The logging properties used during tests..
 #
-log4j.rootLogger=INFO, file
+log4j.rootLogger=WARN, file
 
 # CONSOLE appender not used by default
 log4j.appender.console=org.apache.log4j.ConsoleAppender
@@ -32,4 +32,4 @@
 log4j.appender.file.file=target/camel-jetty-test.log
 
 # debug loging for Camel
-log4j.logger.org.apache.camel.component.jetty=DEBUG
+#log4j.logger.org.apache.camel.component.jetty=DEBUG