That's what I was looking for. Thanks soo much.
________________________________ From: Claus Ibsen <[email protected]> To: [email protected] Sent: Thursday, 16 August 2012 6:05 PM Subject: Re: how to change the default camel test On Thu, Aug 16, 2012 at 1:27 AM, surangika ranathunga <[email protected]> wrote: > > > Hi All, > I am very new to JEE and Apache camel, so need your help. > In order to implement a new end point, I was using the example given in > Chapter 11. This procedure creates a test class that extends CamelTestSupport. > > The consumer extends a ScheduledPollConsumer, which is supposed to execute a > poll method every 500ms. However, when I test this (using 'mvn test' > command), the consumer sends a message once, and stops. > How can I change the test class logic so that the consumer will keep on > sending data until I manually terminate it? > There is a mock endpoint in the unit test class I would assume. You can then increase the minimum expected number of messages and set it to a higher number. > Thanks a lot in advance, > SURA -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
