Re: Camel Test Infrastructure FTP

2025-06-05 Thread Federico Mariani
*** > > @Configuration > public class TestConfiguration { > @Bean > public RouteBuilder routeBuilder() { > > return new RouteBuilder() { > @Override > public void configure() { >

Re: Camel Test Infrastructure FTP

2025-06-05 Thread med...@volny.cz
; } }; } } } The trouble is - if put breakpoint in the method configure() within the ReouteBuilder bean, the FTP is not yet initialized and service.getPort() is 0 How can I force FTP to be initialized before the RouteBuilder bean is loaded? Regards Jiři _

Re: Camel Test Infrastructure FTP

2025-06-03 Thread Federico Mariani
Hi, Did you import in your pom.xml *camel-test-infra-ftp *with type* test-jar? *The test jar contains both main and test classes https://github.com/apache/camel-spring-boot/blob/main/components-starter/camel-ftp-starter/pom.xml#L54-L60 Moreover, in *camel-spring-boot* repository there are some te