You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2009/08/30 02:28:22 UTC

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

Author: ningjiang
Date: Sun Aug 30 00:28:21 2009
New Revision: 809231

URL: http://svn.apache.org/viewvc?rev=809231&view=rev
Log:
CAMEL-1955 fixed the test error of camel-jetty

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

Modified: camel/branches/camel-1.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpRoundtripHeaderTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpRoundtripHeaderTest.java?rev=809231&r1=809230&r2=809231&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpRoundtripHeaderTest.java (original)
+++ camel/branches/camel-1.x/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpRoundtripHeaderTest.java Sun Aug 30 00:28:21 2009
@@ -54,7 +54,7 @@
         assertEquals("response matches: " + expectedText, expectedText, lastLine);
     }
 
-    public void testHttpRoundTripHeadersWithNoIngoredHeaders() throws Exception {
+    public void testHttpRoundTripHeadersWithNoIgnoredHeaders() throws Exception {
         MockEndpoint mockEndpoint = resolveMandatoryEndpoint("mock:results", MockEndpoint.class);
         mockEndpoint.expectedMessageCount(1);
 
@@ -83,7 +83,7 @@
                         String input = (String) exchange.getIn().getBody();
                         // append some text to invalidate Context-Length
                         // for the http reply
-                        exchange.getOut().setBody(input + outputText);
+                        exchange.getIn().setBody(input + outputText);
                     }
                 };
 
@@ -102,7 +102,7 @@
         Message in = exchange.getIn();
         assertNotNull("in", in);
         Map<String, Object> headers = in.getHeaders();
-        assertTrue("no headers are propagated", headers.isEmpty());
+        assertTrue("no headers are propagated", !headers.isEmpty());
         assertEquals("body has expectedText:" + expected, expected, in.getBody());
     }