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 a7961cd  CAMEL-16913: convertBodyTo EIP - Allow to turn off mandatory.
a7961cd is described below

commit a7961cd0ef7076377b98276c26b08bc1f74e28e3
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Fri Sep 3 06:23:21 2021 +0200

    CAMEL-16913: convertBodyTo EIP - Allow to turn off mandatory.
---
 .../resources/org/apache/camel/spring/processor/convertBody.xml     | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/components/camel-spring-xml/src/test/resources/org/apache/camel/spring/processor/convertBody.xml
 
b/components/camel-spring-xml/src/test/resources/org/apache/camel/spring/processor/convertBody.xml
index a0e6565..ed568a6 100644
--- 
a/components/camel-spring-xml/src/test/resources/org/apache/camel/spring/processor/convertBody.xml
+++ 
b/components/camel-spring-xml/src/test/resources/org/apache/camel/spring/processor/convertBody.xml
@@ -34,6 +34,12 @@
         </route>
 
         <route>
+            <from uri="direct:optional"/>
+            <convertBodyTo type="java.lang.Integer" mandatory="false"/>
+            <to uri="mock:result"/>
+        </route>
+
+        <route>
             <from uri="direct:invalid"/>
             <convertBodyTo type="java.util.Date"/>
             <to uri="mock:result"/>

Reply via email to