RE: Unit testing a method with Exchange as a Param

2012-05-25 Thread Gershaw, Geoffrey
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

RE: Unit testing a method with Exchange as a Param

2012-05-25 Thread Christian Müller
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

RE: Unit testing a method with Exchange as a Param

2012-05-25 Thread Gershaw, Geoffrey
- 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

Re: Unit testing a method with Exchange as a Param

2012-05-24 Thread Christian Müller
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