camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Unit testing of an existing RouteBuilder class
Date Sun, 01 Jul 2012 07:36:45 GMT

Yeah I suggest to read these couple of links

For example the advice with allows you to manipulate the routes before
unit testing.
And mock allows to mock endpoints by pattern, and whether to skip
sending to the target endpoint or not.

On Sun, Jul 1, 2012 at 9:21 AM, gilboy <> wrote:
> 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:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message