On Thu, Sep 29, 2011 at 9:57 PM,  <inliner...@gmx.de> wrote:
> Hi,
>
> I am trying to run a unit test with multiple camelcontexts defined.
>
> The test extends CamelSpringTestSupport.
>
> Whenever I run the test, I get the message: Should have at least one route.
>

You can override a method named something like int getExepctedRoutes()
and return 0.
I can't remember the method name exactly.


> However, when I run exactly the same camelcontext via the Mainsupport
> of Camel, everything works fine as expected, and routes are defined correctly 
> in the contexts.
>
> What's wrong here? Isn't CamelSpringTestSupport supposed to be used
> with multiple camelcontexts?
>

Not really, as its meant for testing a single camel context.

> Thx. Regards.
> --
> NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
> Jetzt informieren: http://www.gmx.net/de/go/freephone
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to