camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r701597 - /activemq/camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyContentBasedRouteTest.java
Date Sat, 04 Oct 2008 04:31:12 GMT
Author: ningjiang
Date: Fri Oct  3 21:31:11 2008
New Revision: 701597

URL: http://svn.apache.org/viewvc?rev=701597&view=rev
Log:
Fixed the test error of JettyContentBasedRouteTest

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

Modified: activemq/camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyContentBasedRouteTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyContentBasedRouteTest.java?rev=701597&r1=701596&r2=701597&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyContentBasedRouteTest.java
(original)
+++ activemq/camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyContentBasedRouteTest.java
Fri Oct  3 21:31:11 2008
@@ -29,22 +29,22 @@
 
     public void testSendOne() throws Exception {
         MockEndpoint mock = getMockEndpoint("mock:one");
-        mock.expectedBodiesReceived("Hello World");
+
         mock.expectedHeaderReceived("one", "true");
 
-        template.sendBody(serverUri + "?one=true", "Hello World");
+        template.sendBody(serverUri + "?one=true", null);
 
-        assertMockEndpointsSatisifed();
+        assertMockEndpointsSatisfied();
     }
 
     public void testSendOther() throws Exception {
         MockEndpoint mock = getMockEndpoint("mock:other");
-        mock.expectedBodiesReceived("Bye World");
+
         mock.expectedHeaderReceived("two", "true");
 
-        template.sendBody(serverUri + "?two=true", "Bye World");
+        template.sendBody(serverUri + "?two=true", null);
 
-        assertMockEndpointsSatisifed();
+        assertMockEndpointsSatisfied();
     }
 
     protected RouteBuilder createRouteBuilder() throws Exception {



Mime
View raw message