camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tarjei Huse <>
Subject Append endpoint to route at test-time.
Date Sun, 08 May 2011 11:44:41 GMT

I got a route like this:
            .process(new BookKeeperProcessor(bookKeeper));
That I would like to test by appending a mock endpoint to the route and
avaiting for it to receive the message.

I could add a .to(log:something) at the end of the route, but I would
find it more pleasing if I could just append an endpoint to the route
using the new adviceWith() functionality.

Is this possible?

Regards / Med vennlig hilsen
Tarjei Huse
Mobil: 920 63 413

View raw message