Hi

in case you want to test the entire route, I’d recommend using a producer 
template.
The ProducerTemplate can send an exchange via:

template.send(“your://endoint/uri”, exchange);

Best,

Christoph

On 15 Jan 2014, at 18:48, Castyn <eric.ben...@gmail.com> wrote:

> So to go a bit further, assuming I setup the producer template to mimic and
> exchange to test this method, how then do I send that exchange to the
> method?  Do I just instantiate the processor within the test case and use
> the template.send(Processor) method signature to do this?  If so how then do
> I see the out exchange from the template?  
> 
> Also if it is not a processor and just a bean with a method that executes on
> the exchange, how then would I even send the producer template exchange to
> that method?
> 
> 
> 
> 
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Unit-Testing-Question-tp5745966p5745999.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to