camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashwin Karpe <>
Subject Re: Unit test camel with activeMQ
Date Thu, 02 Jun 2011 10:53:58 GMT

Your unit test is incorrectly defined.

You are using a request-reply model with a route that is defined to be
          Object requestBody = template.requestBody(startEndpointUri,

Sine your route is in-only and sends a message to another queue
activemq:finish, your unit test should read the message from activemQ:finish
to determine whether the message arrived on the queue.

Also you need to change the API to 
           template.sendBody(startEndpointUri, "toto");

This should get rid of the error and get your unit test working. 



Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary) 

CamelOne 2011: 
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message