This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new d0f1f95 CAMEL-17073: Invalid simple expression cache behavior d0f1f95 is described below commit d0f1f952b976c487baee5b8163672e7136b38de5 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Oct 13 14:44:51 2021 +0200 CAMEL-17073: Invalid simple expression cache behavior --- .../apache/camel/language/simple/SimpleCacheExpressionTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/camel-core/src/test/java/org/apache/camel/language/simple/SimpleCacheExpressionTest.java b/core/camel-core/src/test/java/org/apache/camel/language/simple/SimpleCacheExpressionTest.java index c8d84ab..271eeae 100644 --- a/core/camel-core/src/test/java/org/apache/camel/language/simple/SimpleCacheExpressionTest.java +++ b/core/camel-core/src/test/java/org/apache/camel/language/simple/SimpleCacheExpressionTest.java @@ -33,4 +33,12 @@ public class SimpleCacheExpressionTest extends LanguageTestSupport { assertExpression(exchange, "header.foo", "header.foo"); assertExpression(exchange, "${header.foo}", 123); } + + @Test + public void testReverseCachingExpression() throws Exception { + exchange.getIn().setHeader("foo", 123); + + assertExpression(exchange, "${header.foo}", 123); + assertExpression(exchange, "header.foo", "header.foo"); + } }