Hi

You could use property placeholders and then in an unit test replace
the trigger to run faster. Or you can use advice with and then replace
the from uri with something what you want instead.

http://camel.apache.org/using-propertyplaceholder.html
http://camel.apache.org/advicewith.html


On Thu, May 19, 2016 at 5:26 PM, henricao <henrique.li...@outlook.com> wrote:
> Hi all,
>
>   I have a route that reads files from a directory and ftp them in a server,
> something like this:
>
>   from("file: ...").to("sftp: ...");
>
>   In the file component I defined a schedule for polling the directory every
> hour.
>
>   In my tests, I would like to trigger manually this route, ignoring the
> scheduler, to make sure that it is working fine.
>
>   Is there a recommended way to do that?
>
> Thanks all,
> Henrique
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Manually-trigger-a-scheduled-route-for-testing-tp5782791.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to