camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lotsa <>
Subject Problems Unit Testing Camel Routes
Date Thu, 09 Jul 2009 17:41:12 GMT

I was wondering if anyone has a solution to testing camel routes that end
with an activemq endpoint.  Specifically, 

   <from ref="endpoint"/>
   ...some logic...
   <to ref="MyQueue"/> -> myQueue is a defined endpoint
...activemq:queue:myqueue/in in my actual code
                                    In my test code MyQueue is defined as
mock ...mock:MyQueue

   <from ref="MyQueue"/>

The problem I am having is that I am getting an error stating that I cannot
consume from this endpoint.  If I remove the second route I have no issues. 
I understand that this will not work with a mock, so I was wondering what
the correct procedure would be to 'mock' out a queue
View this message in context:
Sent from the Camel - Users (activemq) mailing list archive at

View raw message