This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 9306e67bfeb6d2c8583be492ad24f466b3a77dfc
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Mon Jan 26 20:34:35 2026 +0000

    (chores): ensure usage of text blocks camel-kamelet
---
 .../apache/camel/component/kamelet/KameletLocalBeanGroovyTest.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletLocalBeanGroovyTest.java
 
b/components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletLocalBeanGroovyTest.java
index d2f2723f2891..b71ad42e1649 100644
--- 
a/components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletLocalBeanGroovyTest.java
+++ 
b/components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletLocalBeanGroovyTest.java
@@ -46,9 +46,10 @@ public class KameletLocalBeanGroovyTest extends 
CamelTestSupport {
             public void configure() {
                 routeTemplate("whereTo")
                         .templateBean("myBar", "groovy",
-                                "def bean = new 
org.apache.camel.component.kamelet.MyInjectBar()\n"
-                                                         + "bean.bar = 
'Gr8t'\n"
-                                                         + "return bean")
+                                """
+                                        def bean = new 
org.apache.camel.component.kamelet.MyInjectBar()
+                                        bean.bar = 'Gr8t'
+                                        return bean""")
                         .from("kamelet:source")
                         // must use {{myBar}} to refer to the local bean
                         .to("bean:{{myBar}}");

Reply via email to