camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gilboy <josephoto...@gmail.com>
Subject Unit testing of an existing RouteBuilder class
Date Sun, 01 Jul 2012 07:21:35 GMT
Hi

I was reading how camel supports unit testing of an existing RouteBuilder
class. 

I think this is very useful as I don't want to have to duplicate the route
in the unit test. 

However, suppose the route defined in the existing RouteBuilder class
contains an endpoint that I need to mock. Is there anyway after loading the
route in the unit test class that I can replace the endpoint that needs to
be mocked?

Thanks

--
View this message in context: http://camel.465427.n5.nabble.com/Unit-testing-of-an-existing-RouteBuilder-class-tp5715327.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message