Hello, You should be able to do this by running a embedded broker in you integration unit tests. After the test has completed you can verify that there are no remaining messages on the JMS queue.
For more info see http://activemq.apache.org/how-to-unit-test-jms-code.html and there is also a nice webinar on fusesource.com ( http://fusesource.com/resources/video-archived-webinars/ ) titled "Are your Apache Camel Routes Ready for Production" where there are some slides that cover the topic of having a embedded broker. Best regards Pontus Ullgren On Mon, Jul 2, 2012 at 6:15 PM, gilboy <[email protected]> wrote: > Hi > > I have a route where I consume a message from a JMS topic and do some > processing of the message. > > I have the JMS Ack mode set to: CLIENT_ACKNOWLEDGE mode > > If the route successfully completes the message is dequeued. I want to > verify that this takes place, i.e. message gets dequeued. Does the camel > junit extensions support verifying that the message has been de-queued? > > Thanks > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Testing-a-Route-which-de-queues-message-from-Topic-in-CLIENT-ACKNOWLEDGE-mode-tp5715361.html > Sent from the Camel - Users mailing list archive at Nabble.com.
