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 <[email protected]> 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.

Reply via email to