camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zzkozak <>
Subject Re: How to mock a bean in a route?
Date Thu, 08 Nov 2012 10:57:07 GMT
I'm not using the RouteBuilder to define my routes ... only Spring DSL.

For the test I changed the route to fire the bean for every 5 sekonds and
write my test as follows:

The route:

The test (draft, only to check whether it runs into the
createOrderRequests() method):

Unfortunately, when I place a break point in to the line where I throw the
TrendFailureException, the test never runs into it. Do I miss something?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message