On Thu, Aug 16, 2012 at 1:27 AM, surangika ranathunga <lady_ra...@yahoo.com> 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: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen