camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r934751 - in /camel/trunk: camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregatorTest.java components/camel-spring/src/test/resources/org/apache/camel/spring/processor/aggregator.xml
Date Fri, 16 Apr 2010 11:22:28 GMT
Author: davsclaus
Date: Fri Apr 16 11:22:28 2010
New Revision: 934751

URL: http://svn.apache.org/viewvc?rev=934751&view=rev
Log:
Fixed test on other boxes.

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregatorTest.java
    camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/aggregator.xml

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregatorTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregatorTest.java?rev=934751&r1=934750&r2=934751&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregatorTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregatorTest.java
Fri Apr 16 11:22:28 2010
@@ -51,7 +51,7 @@ public class AggregatorTest extends Cont
         resultEndpoint.expectedMessageCount(1);
         Map headers = new HashMap();
         headers.put("cheese", 123);
-        headers.put("aggregated", 5);
+        headers.put("bar", "viper bar");
 
         template.sendBodyAndHeaders("direct:predicate", "test", headers);
         resultEndpoint.assertIsSatisfied();
@@ -88,9 +88,8 @@ public class AggregatorTest extends Cont
                         .to("mock:result");
 
                 // in this sample we aggregate using our own strategy with a completion predicate
-                // stating that the aggregated header is equal to 5.
                 from("direct:predicate")
-                    .aggregate(header("cheese"), new MyAggregationStrategy()).completionPredicate(header("aggregated").isEqualTo(5))
+                    .aggregate(header("cheese"), new MyAggregationStrategy()).completionPredicate(header("bar").isEqualTo("viper
bar"))
                         .to("mock:result");
                 // END SNIPPET: ex
             }

Modified: camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/aggregator.xml
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/aggregator.xml?rev=934751&r1=934750&r2=934751&view=diff
==============================================================================
--- camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/aggregator.xml
(original)
+++ camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/aggregator.xml
Fri Apr 16 11:22:28 2010
@@ -55,7 +55,7 @@
                     <simple>header.cheese</simple>
                 </correlationExpression>
                 <completionPredicate>
-                    <simple>${header.aggregated} == 5</simple>
+                    <simple>${header.bar} == 'viper bar'</simple>
                 </completionPredicate>
                 <to uri="mock:result"/>
             </aggregate>



Mime
View raw message