But I found out that: @Value("${myProperty}") private String filePath;@Override public void configure() throws Exception { String route = "file:"+ filePath + "/?noop=true\""; from(route) // FILE PATH FROM PROPERTIES instead of {{myProperty}} directly is used the Test works!
+1
But I do not (yet) understand why this works.
* @Value("${myProperty}") is handled by Spring * {{myProperty}} within the route definition is handled by Camel Is it possible to share a minimal example?