> You can override a method named something like int getExepctedRoutes() > and return 0. > I can't remember the method name exactly.
Yes, I did it, and the error is avoided this way. However the total route count is 0 of the loaded contexts, so no routing is possible, and that is the root of the problem, not the check. > > 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. OK, I give up :-) The idea was to have an original production context loaded up unchanged, and parallel to this to load up a parallel contexts which does some preparation of the payload for the test. Nevermind, I keep launching up the contexts via MainSupport class, this works fine. -------- Original-Nachricht -------- > Datum: Fri, 30 Sep 2011 07:47:50 +0200 > Von: Claus Ibsen <[email protected]> > An: [email protected] > Betreff: Re: CamelSpringTestSupport with multiple Camel-Contexts, not working > On Thu, Sep 29, 2011 at 9:57 PM, <[email protected]> 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: [email protected] > Web: http://fusesource.com > Twitter: davsclaus, fusenews > Blog: http://davsclaus.blogspot.com/ > Author of Camel in Action: http://www.manning.com/ibsen/ -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone
