[ https://issues.apache.org/jira/browse/CAMEL-21962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17944291#comment-17944291 ]
Aurélien Pupier commented on CAMEL-21962: ----------------------------------------- note that this deprecated method is used in 12 places in camel-examples https://github.com/search?q=repo%3Aapache%2Fcamel-examples%20useOverridePropertiesWithPropertiesComponent&type=code . Several of them are failing too (but not all!!) > CSimpleTest is failing in camel-examples repository > --------------------------------------------------- > > Key: CAMEL-21962 > URL: https://issues.apache.org/jira/browse/CAMEL-21962 > Project: Camel > Issue Type: Bug > Components: examples > Reporter: Aurélien Pupier > Priority: Major > > {noformat} > org.apache.camel.PropertyBindingException: Error binding property > (camel.main.lightweight=true) with name: lightweight on bean: > org.apache.camel.main.MainConfigurationProperties@1deb2c43 with value: true > at > org.apache.camel.main.MainHelper.setPropertiesOnTarget(MainHelper.java:380) > at > org.apache.camel.main.BaseMainSupport.autoConfigurationMainConfiguration(BaseMainSupport.java:2388) > at > org.apache.camel.main.BaseMainSupport.autoconfigure(BaseMainSupport.java:566) > at org.apache.camel.main.MainSupport.autoconfigure(MainSupport.java:79) > at > org.apache.camel.main.BaseMainSupport.postProcessCamelContext(BaseMainSupport.java:919) > at > org.apache.camel.test.main.junit5.MainForTest.init(MainForTest.java:46) > at > org.apache.camel.test.main.junit5.CamelMainTestSupport.createCamelContext(CamelMainTestSupport.java:147) > at > org.apache.camel.test.junit5.TransientCamelContextManager.initialize(TransientCamelContextManager.java:87) > at > org.apache.camel.test.junit5.TransientCamelContextManager.createCamelContext(TransientCamelContextManager.java:66) > at > org.apache.camel.test.junit5.CamelTestSupport.setUp(CamelTestSupport.java:150) > at java.base/java.lang.reflect.Method.invoke(Unknown Source) > at java.base/java.util.ArrayList.forEach(Unknown Source) > at java.base/java.util.ArrayList.forEach(Unknown Source) > {noformat} > it seems to be related to the changes in 4.9 > https://camel.apache.org/blog/2024/10/modernizing-test-code-how-to/ > the method useOverridePropertiesWithPropertiesComponent > https://github.com/apache/camel-examples/blob/09051c7c8d33f34ec933ecde67456cff67f6fc59/csimple/src/test/java/org/apache/camel/example/CSimpleTest.java#L36 > is now deprecated (and dos't seem to work anymore) -- This message was sent by Atlassian Jira (v8.20.10#820010)