camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1327558 - in /camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor: DynamicRouterExchangeHeadersTest.java DynamicRouterExchangePropertiesTest.java
Date Wed, 18 Apr 2012 16:07:50 GMT
Author: davsclaus
Date: Wed Apr 18 16:07:50 2012
New Revision: 1327558

URL: http://svn.apache.org/viewvc?rev=1327558&view=rev
Log:
CAMEL-5189: method call expression should propagate exchange properties and message headers,
so we can support stateful EIPs such as dynamic router etc. This is also consistent what we
do in with other EIPs and components.

Modified:
    camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor/DynamicRouterExchangeHeadersTest.java
    camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor/DynamicRouterExchangePropertiesTest.java

Modified: camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor/DynamicRouterExchangeHeadersTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor/DynamicRouterExchangeHeadersTest.java?rev=1327558&r1=1327557&r2=1327558&view=diff
==============================================================================
--- camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor/DynamicRouterExchangeHeadersTest.java
(original)
+++ camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor/DynamicRouterExchangeHeadersTest.java
Wed Apr 18 16:07:50 2012
@@ -62,7 +62,7 @@ public class DynamicRouterExchangeHeader
             public void configure() throws Exception {
                 from("direct:start")
                     // use a bean as the dynamic router
-                    .dynamicRouter(method(DynamicRouterExchangeHeadersTest.class, "slip"));
+                    .dynamicRouter(bean(DynamicRouterExchangeHeadersTest.class, "slip"));
 
                 from("direct:foo").transform(constant("Bye World")).to("mock:foo");
             }

Modified: camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor/DynamicRouterExchangePropertiesTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor/DynamicRouterExchangePropertiesTest.java?rev=1327558&r1=1327557&r2=1327558&view=diff
==============================================================================
--- camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor/DynamicRouterExchangePropertiesTest.java
(original)
+++ camel/branches/camel-2.9.x/camel-core/src/test/java/org/apache/camel/processor/DynamicRouterExchangePropertiesTest.java
Wed Apr 18 16:07:50 2012
@@ -62,7 +62,7 @@ public class DynamicRouterExchangeProper
             public void configure() throws Exception {
                 from("direct:start")
                     // use a bean as the dynamic router
-                    .dynamicRouter(method(DynamicRouterExchangePropertiesTest.class, "slip"));
+                    .dynamicRouter(bean(DynamicRouterExchangePropertiesTest.class, "slip"));
 
                 from("direct:foo").transform(constant("Bye World")).to("mock:foo");
             }



Mime
View raw message