camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r787940 - /camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregatorRouteNumberOfProcessorTest.java
Date Wed, 24 Jun 2009 08:25:51 GMT
Author: ningjiang
Date: Wed Jun 24 08:25:51 2009
New Revision: 787940

URL: http://svn.apache.org/viewvc?rev=787940&view=rev
Log:
Try to fix the test failure of AggregatorRouteNumberOfProcessorTest

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregatorRouteNumberOfProcessorTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregatorRouteNumberOfProcessorTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregatorRouteNumberOfProcessorTest.java?rev=787940&r1=787939&r2=787940&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregatorRouteNumberOfProcessorTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregatorRouteNumberOfProcessorTest.java
Wed Jun 24 08:25:51 2009
@@ -18,6 +18,7 @@
 
 import org.apache.camel.ContextTestSupport;
 import org.apache.camel.Exchange;
+import org.apache.camel.ExchangePattern;
 import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
@@ -119,8 +120,8 @@
         getMockEndpoint("mock:agg").expectedBodiesReceived("Hi Willem");
         getMockEndpoint("mock:foo").expectedBodiesReceived("Hi Willem");
 
-        template.requestBodyAndHeader("direct:start", "Claus", "id", 1);
-        template.requestBodyAndHeader("direct:start", "Willem", "id", 1);
+        template.sendBodyAndHeader("direct:start", ExchangePattern.InOnly, "Claus", "id",
1);
+        template.sendBodyAndHeader("direct:start", ExchangePattern.InOnly, "Willem", "id",
1);
 
         assertMockEndpointsSatisfied();
 



Mime
View raw message