This is an automated email from the ASF dual-hosted git repository. jiriondrusek pushed a commit to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/camel-main by this push: new 8e7059cc5d fix of kotlin dsl probably because of CAMEL-20333 8e7059cc5d is described below commit 8e7059cc5dcbddcf72a27e0947efb24d7cc561a1 Author: JiriOndrusek <ondrusek.j...@gmail.com> AuthorDate: Thu Feb 8 16:18:11 2024 +0100 fix of kotlin dsl probably because of CAMEL-20333 --- .../routes/routes-with-languages-configuration.kts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/integration-tests/kotlin-dsl/src/main/resources/routes/routes-with-languages-configuration.kts b/integration-tests/kotlin-dsl/src/main/resources/routes/routes-with-languages-configuration.kts index 6988090338..fa073ec5fe 100644 --- a/integration-tests/kotlin-dsl/src/main/resources/routes/routes-with-languages-configuration.kts +++ b/integration-tests/kotlin-dsl/src/main/resources/routes/routes-with-languages-configuration.kts @@ -19,17 +19,15 @@ import org.apache.camel.language.bean.BeanLanguage camel { languages { language<BeanLanguage>("bean") { - beanType = String::class.java - method = "toUpperCase" + isValidate = false } language<BeanLanguage>("my-bean") { - beanType = String::class.java - method = "toLowerCase" + isValidate = true } } } from("direct:routes-with-languages-configuration") - .id("routes-with-languages-configuration") - .process().message { - m -> m.body = m.exchange.context.getRegistry().lookupByName("my-bean") != null - } + .id("routes-with-languages-configuration") + .process().message { + m -> m.body = m.exchange.context.getRegistry().lookupByName("my-bean") != null + }