Gershaw
> Credit eTrading Dev - RDO
> 1 919 994 6412
>
>
> -Original Message-
> From: Christian Müller [mailto:christian.muel...@gmail.com]
> Sent: Thursday, May 24, 2012 6:40 PM
> To: users@camel.apache.org
> Subject: Re: Unit testing a method with Exchange as a
Gershaw
> Credit eTrading Dev - RDO
> 1 919 994 6412
>
>
> -Original Message-
> From: Christian Müller [mailto:christian.muel...@gmail.com]
> Sent: Thursday, May 24, 2012 6:40 PM
> To: users@camel.apache.org
> Subject: Re: Unit testing a method with Exchange as a
-
From: Christian Müller [mailto:christian.muel...@gmail.com]
Sent: Thursday, May 24, 2012 6:40 PM
To: users@camel.apache.org
Subject: Re: Unit testing a method with Exchange as a Param
I wouldn't mock the Exchange:
CamelContext ctx = new CamelContext();
Exchange ex = new DefaultExchange
I wouldn't mock the Exchange:
CamelContext ctx = new CamelContext();
Exchange ex = new DefaultExchange(ctx);
// your code...
Best,
Christian
On Thu, May 24, 2012 at 11:31 PM, Gershaw, Geoffrey <
geoffrey.gers...@credit-suisse.com> wrote:
> Hello all,
>
> I am trying to unit test the following