camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Minh Tran <>
Subject best way to unit test quartz routes
Date Mon, 05 May 2014 22:51:28 GMT

Most of my routes start with either direct or jms. So to test I would use the @MockEndpoints
and set all my expectations then trigger the route using a ProducerTemplate. But I'm struggling
to understand how I can do the same when it's a quartz component at the start of the route.


<from uri="quartz:foo"/>
<to uri="bean:bar"/>

How do you trigger this from the unit test? I'd like to be able to set all my expectations
before the route gets triggered.
View raw message