You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/03/11 14:12:27 UTC
[camel] 01/04: CAMEL-16326: camel-core - Optimize usage of
exchanage properties for state in routing engine.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch opt-exchangekey
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 7c9f7a1d948237c0a613f64a4df3e55bbaa214de
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Mar 11 14:34:58 2021 +0100
CAMEL-16326: camel-core - Optimize usage of exchanage properties for state in routing engine.
---
.../src/test/java/org/apache/camel/language/spel/SpelRouteTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/components/camel-spring-xml/src/test/java/org/apache/camel/language/spel/SpelRouteTest.java b/components/camel-spring-xml/src/test/java/org/apache/camel/language/spel/SpelRouteTest.java
index 3c273bd..609ba44 100644
--- a/components/camel-spring-xml/src/test/java/org/apache/camel/language/spel/SpelRouteTest.java
+++ b/components/camel-spring-xml/src/test/java/org/apache/camel/language/spel/SpelRouteTest.java
@@ -48,7 +48,8 @@ public class SpelRouteTest extends ContextTestSupport {
public void configure() {
from("direct:test").setBody(spel("Hello #{message.body}! What a beautiful #{request.headers['dayOrNight']}"))
.to("mock:result");
- from("direct:loop").loop(4).setBody(spel("#{body + ':' + properties['CamelLoopIndex']}")).to("mock:loopResult");
+ from("direct:loop").loop(4).setBody(spel("#{body + ':' + getProperty('CamelLoopIndex')}"))
+ .to("mock:loopResult");
}
};
}