***
>
> @Configuration
> public class TestConfiguration {
> @Bean
> public RouteBuilder routeBuilder() {
>
> return new RouteBuilder() {
> @Override
> public void configure() {
>
;
}
};
}
}
}
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
_
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