camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <ja...@carmanconsulting.com>
Subject Re: How to mock a bean in a route?
Date Thu, 08 Nov 2012 02:27:27 GMT
You can inject mock objects into your route builders very easily.
Just pick your mock object framework of choice and inject them when
you create your RouteBuilder.

On Wed, Nov 7, 2012 at 10:37 AM, zzkozak <marcin@pikula.de> wrote:
> Hi,
>
>  I have the following route and would like to test it by throwing an
> exception by the orderRequestCreator bean. How do I do that?
>
>
>
>  I am using annotated JUnit tests, like this:
>
>
>
>  Thank you in advance,
> Marcin
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-mock-a-bean-in-a-route-tp5722307.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message