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 a90e886da595 chore: camel-kamelet - fix tests broken by removal of 
joor language
a90e886da595 is described below

commit a90e886da59525681ab75127bb6dc7bd7cb94c43
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Sep 15 22:19:43 2026 +0200

    chore: camel-kamelet - fix tests broken by removal of joor language
    
    The joor language was removed, so switch the remaining tests to the java 
language which is its replacement.
    
    Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 ...oorTest.java => KameletEipAggregateJavaTest.java} |  6 +++---
 ...st.java => KameletLocalBeanJavaExternalTest.java} |  4 ++--
 .../camel-kamelet/src/test/resources/mybar.java      | 20 ++++++++++++++++++++
 .../camel-kamelet/src/test/resources/mybar.joor      |  4 ----
 4 files changed, 25 insertions(+), 9 deletions(-)

diff --git 
a/components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletEipAggregateJoorTest.java
 
b/components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletEipAggregateJavaTest.java
similarity index 91%
rename from 
components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletEipAggregateJoorTest.java
rename to 
components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletEipAggregateJavaTest.java
index 40abfb888af4..31680b60aefe 100644
--- 
a/components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletEipAggregateJoorTest.java
+++ 
b/components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletEipAggregateJavaTest.java
@@ -22,7 +22,7 @@ import org.apache.camel.component.mock.MockEndpoint;
 import org.apache.camel.test.junit6.CamelTestSupport;
 import org.junit.jupiter.api.Test;
 
-public class KameletEipAggregateJoorTest extends CamelTestSupport {
+public class KameletEipAggregateJavaTest extends CamelTestSupport {
 
     @Test
     public void testAggregate() throws Exception {
@@ -48,9 +48,9 @@ public class KameletEipAggregateJoorTest extends 
CamelTestSupport {
             @Override
             public void configure() {
                 routeTemplate("my-aggregate")
-                        .templateBean("myAgg", "joor",
+                        .templateBean("myAgg", "java",
                                 // for aggregation we can use a BiFunction 
that takes Exchange as input and return the aggregated response
-                                // camel-joor has special support for this if 
we use (e1, e2) -> { ... } as a lambda expression
+                                // camel-joor (java language) has special 
support for this if we use (e1, e2) -> { ... } as a lambda expression
                                 "(e1, e2) -> {" +
                                                        " String b1 = 
e1.getMessage().getBody(String.class);" +
                                                        " String b2 = 
e2.getMessage().getBody(String.class);" +
diff --git 
a/components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletLocalBeanJoorExternalTest.java
 
b/components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletLocalBeanJavaExternalTest.java
similarity index 94%
rename from 
components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletLocalBeanJoorExternalTest.java
rename to 
components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletLocalBeanJavaExternalTest.java
index 887320a61fd4..ff06ca284cd4 100644
--- 
a/components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletLocalBeanJoorExternalTest.java
+++ 
b/components/camel-kamelet/src/test/java/org/apache/camel/component/kamelet/KameletLocalBeanJavaExternalTest.java
@@ -25,7 +25,7 @@ import org.junit.jupiter.api.condition.EnabledForJreRange;
 import org.junit.jupiter.api.condition.JRE;
 
 @EnabledForJreRange(min = JRE.JAVA_11)
-public class KameletLocalBeanJoorExternalTest extends CamelTestSupport {
+public class KameletLocalBeanJavaExternalTest extends CamelTestSupport {
 
     @Test
     public void testOne() throws Exception {
@@ -60,7 +60,7 @@ public class KameletLocalBeanJoorExternalTest extends 
CamelTestSupport {
             public void configure() {
                 routeTemplate("whereTo")
                         .templateParameter("bar") // name of bar
-                        .templateBean("myBar", "joor", 
"resource:classpath:mybar.joor")
+                        .templateBean("myBar", "java", 
"resource:classpath:mybar.java")
                         .from("kamelet:source")
                         // must use {{myBar}} to refer to the local bean
                         .to("bean:{{myBar}}");
diff --git a/components/camel-kamelet/src/test/resources/mybar.java 
b/components/camel-kamelet/src/test/resources/mybar.java
new file mode 100644
index 000000000000..10cd1710f057
--- /dev/null
+++ b/components/camel-kamelet/src/test/resources/mybar.java
@@ -0,0 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+var bean = new org.apache.camel.component.kamelet.MyInjectBar();
+// rtc is RouteTemplateContext
+bean.setBar(rtc.getProperty('bar', String.class));
+return bean;
diff --git a/components/camel-kamelet/src/test/resources/mybar.joor 
b/components/camel-kamelet/src/test/resources/mybar.joor
deleted file mode 100644
index eeaae065de14..000000000000
--- a/components/camel-kamelet/src/test/resources/mybar.joor
+++ /dev/null
@@ -1,4 +0,0 @@
-var bean = new org.apache.camel.component.kamelet.MyInjectBar();
-// rtc is RouteTemplateContext
-bean.setBar(rtc.getProperty('bar', String.class));
-return bean;

Reply via email to