Hi Claus,

  First of all, thanks for the response.

  I'm afraid the advice option won't work for me, since the original from
part is part of the scope of my test.  And to clarify, it is not really a
unit test, but more of a integration test.

  The property place holder however works for me and I started using a
similar approach before your answer (concatenating the cron expression
instead of a proper placeholder, but the same principle).

  Ideally, my idea was to have something like this:

  from("direct: realroute").from("fille...").to("sftp:...") 

  from("quartz2:...").to("direct: realroute") //the real scheduled route
used in production

  from("http:...").to("direct: realroute") // a http entrypoint that you
could trigger from the test or manually runs

  I googled about this and couldn't find any evidence that this could work.
It seems that: 
  - the file component has a internal scheduler than can be disabled
  - I can't have a route with two from parts (like the real route above)

  Are these assumptions correct?

  I will use the property placeholder solution if I can't implement this
idea, but I can see this last approach providing some extra benefits that I
really would like to have.

Thanks again for the support,
Henrique

  



--
View this message in context: 
http://camel.465427.n5.nabble.com/Manually-trigger-a-scheduled-route-for-testing-tp5782791p5782822.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to