yep, just use http://camel.apache.org/advicewith.html
http://camel.apache.org/advicewith.html and interceptor to decorate with a
mock endpoint that you can assert against...
tarjei wrote:
>
> Hi,
>
> I got a route like this:
> from(bookKeeperQueue).routeId("BookKeeperRoute")
> .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
>
-----
Ben O'Day
IT Consultant -http://benoday.blogspot.com
--
View this message in context:
http://camel.465427.n5.nabble.com/Append-endpoint-to-route-at-test-time-tp4379843p4381052.html
Sent from the Camel - Users mailing list archive at Nabble.com.