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 3c21bc0ddf6 CAMEL-18626: Java DSL to allow property placeholders in 
setExchangePattern
3c21bc0ddf6 is described below

commit 3c21bc0ddf66b798fcf0704b0302bb9e4ece835f
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Thu Oct 20 20:19:57 2022 +0200

    CAMEL-18626: Java DSL to allow property placeholders in setExchangePattern
---
 .../org/apache/camel/spring/processor/setExchangePattern.xml        | 6 +++++-
 .../camel/spring/processor/setExchangePatternWithCustomId.xml       | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-spring-xml/src/test/resources/org/apache/camel/spring/processor/setExchangePattern.xml
 
b/components/camel-spring-xml/src/test/resources/org/apache/camel/spring/processor/setExchangePattern.xml
index c55da4501ac..cde275b4c29 100644
--- 
a/components/camel-spring-xml/src/test/resources/org/apache/camel/spring/processor/setExchangePattern.xml
+++ 
b/components/camel-spring-xml/src/test/resources/org/apache/camel/spring/processor/setExchangePattern.xml
@@ -55,7 +55,11 @@
       <setExchangePattern pattern="InOnly"/>
       <to uri="mock:result"/>
     </route>
-
+    <route>
+      <from uri="direct:asString"/>
+      <setExchangePattern pattern="InOut"/>
+      <to uri="mock:result"/>
+    </route>
 
     <!-- Lets pass the pattern as an argument in the to element -->
     <route>
diff --git 
a/components/camel-spring-xml/src/test/resources/org/apache/camel/spring/processor/setExchangePatternWithCustomId.xml
 
b/components/camel-spring-xml/src/test/resources/org/apache/camel/spring/processor/setExchangePatternWithCustomId.xml
index 38cc9091150..b2da716b690 100644
--- 
a/components/camel-spring-xml/src/test/resources/org/apache/camel/spring/processor/setExchangePatternWithCustomId.xml
+++ 
b/components/camel-spring-xml/src/test/resources/org/apache/camel/spring/processor/setExchangePatternWithCustomId.xml
@@ -55,7 +55,6 @@
       <to uri="mock:result" id="m"/>
     </route>
 
-
     <!-- Lets pass the pattern as an argument in the to element -->
     <route>
       <from uri="direct:testToWithInOnlyParam" id="n"/>
@@ -65,6 +64,11 @@
       <from uri="direct:testToWithInOutParam" id="p"/>
       <to uri="mock:result" pattern="InOut" id="q"/>
     </route>
+    <route>
+      <from uri="direct:asString" id="r"/>
+      <setExchangePattern pattern="InOut" id="s"/>
+      <to uri="mock:result" id="t"/>
+    </route>
    </camelContext>
 
 </beans>

Reply via email to