Since your bean with the setProcessStatus method requires an exchange, then you should not really use the producer template.
Just create a new DefaultExchange and popular it with data, and call the method. Just like regular java code. On Wed, Jan 15, 2014 at 6:48 PM, 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. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io