You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2024/02/03 11:43:08 UTC
(camel) 09/11: CAMEL-20378: Languages should be thread-safe and be configured only via properties array, all in the same way.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch lang4
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 0eb613997b1d529c635b25910b5454df31e20f97
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Feb 3 12:20:41 2024 +0100
CAMEL-20378: Languages should be thread-safe and be configured only via properties array, all in the same way.
---
.../apache/camel/dsl/groovy/GroovyRouteBuilderLoaderTest.groovy | 7 +------
.../resources/routes/routes-with-languages-configuration.groovy | 7 +------
2 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/dsl/camel-groovy-dsl/camel-groovy-dsl-test/src/test/groovy/org/apache/camel/dsl/groovy/GroovyRouteBuilderLoaderTest.groovy b/dsl/camel-groovy-dsl/camel-groovy-dsl-test/src/test/groovy/org/apache/camel/dsl/groovy/GroovyRouteBuilderLoaderTest.groovy
index 27eddc62a5f..107f1452e18 100644
--- a/dsl/camel-groovy-dsl/camel-groovy-dsl-test/src/test/groovy/org/apache/camel/dsl/groovy/GroovyRouteBuilderLoaderTest.groovy
+++ b/dsl/camel-groovy-dsl/camel-groovy-dsl-test/src/test/groovy/org/apache/camel/dsl/groovy/GroovyRouteBuilderLoaderTest.groovy
@@ -147,13 +147,8 @@ class GroovyRouteBuilderLoaderTest extends Specification {
loadRoute('/routes/routes-with-languages-configuration.groovy')
then:
- with(context.resolveLanguage('bean'), BeanLanguage) {
- beanType == String.class
- method == "toUpperCase"
- }
with(context.resolveLanguage('myBean'), BeanLanguage) {
- beanType == String.class
- method == "toLowerCase"
+ (!isValidate());
}
}
diff --git a/dsl/camel-groovy-dsl/camel-groovy-dsl-test/src/test/resources/routes/routes-with-languages-configuration.groovy b/dsl/camel-groovy-dsl/camel-groovy-dsl-test/src/test/resources/routes/routes-with-languages-configuration.groovy
index 707e057bcb7..feeba851b73 100644
--- a/dsl/camel-groovy-dsl/camel-groovy-dsl-test/src/test/resources/routes/routes-with-languages-configuration.groovy
+++ b/dsl/camel-groovy-dsl/camel-groovy-dsl-test/src/test/resources/routes/routes-with-languages-configuration.groovy
@@ -20,13 +20,8 @@ import org.apache.camel.language.bean.BeanLanguage
camel {
languages {
- bean {
- beanType = String.class
- method = "toUpperCase"
- }
myBean(BeanLanguage) {
- beanType = String.class
- method = "toLowerCase"
+ validate = false;
}
}
}