Hi,

Your unit test is incorrectly defined.

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

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. 

Cheers,

Ashwin...

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com 
CamelOne 2011: http://fusesource.com/camel2011 
---------------------------------------------------------
--
View this message in context: 
http://camel.465427.n5.nabble.com/Unit-test-camel-with-activeMQ-tp4438580p4447730.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to