camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zzkozak <mar...@pikula.de>
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: http://camel.465427.n5.nabble.com/How-to-mock-a-bean-in-a-route-tp5722307p5722363.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message