CamelTestSupport Needs a New Method

2013-09-26 Thread kraythe .
There is a problem with the CamelTestSupport class in that if you call getMockEndpoint on an endpoint that doesnt exist, it blithely returns you an endpoint connected to nothing. The problem is you end up chasing endless test failures when the fact is your endpoint is not even there. So I suggest a

Re: CamelTestSupport Needs a New Method

2013-09-27 Thread Willem jiang
Yeah, it's a good suggestion. Please feel free to fill a JIRA[1] for it :) [1]http://issues.apache.org/jira/browse/CAMEL -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com

Re: CamelTestSupport Needs a New Method

2013-09-27 Thread Raul Kripalani
I would prefer to add another signature for that method such that it accepts a 2nd argument "create" which is a boolean. If true, it will create the endpoint; else it will return null. I don't think CamelTestSupport should make the assertion; it should be the user's code, if that's what he/she is

AW: CamelTestSupport Needs a New Method

2013-09-27 Thread jhm
ehaviour and link to context.hasEndpoint(uri) ... Jan > -Ursprüngliche Nachricht- > Von: Raul Kripalani [mailto:r...@evosent.com] > Gesendet: Freitag, 27. September 2013 15:36 > An: users@camel.apache.org > Betreff: Re: CamelTestSupport Needs a New Method > > I would prefer to add an

Re: CamelTestSupport Needs a New Method

2013-09-27 Thread kraythe .
quot;auto-creation" behaviour and link to context.hasEndpoint(uri) ... > > > Jan > > > > -Ursprüngliche Nachricht- > > Von: Raul Kripalani [mailto:r...@evosent.com] > > Gesendet: Freitag, 27. September 2013 15:36 > > An: users@camel.apache.org > > Be

Re: CamelTestSupport Needs a New Method

2013-09-28 Thread Claus Ibsen
;> Von: Raul Kripalani [mailto:r...@evosent.com] >> Gesendet: Freitag, 27. September 2013 15:36 >> An: users@camel.apache.org >> Betreff: Re: CamelTestSupport Needs a New Method >> >> I would prefer to add another signature for that method such that it >> acce

Re: CamelTestSupport Needs a New Method

2013-09-28 Thread kraythe .
aviour and link to context.hasEndpoint(uri) ... > > > > > > Jan > > > > > >> -Ursprüngliche Nachricht- > >> Von: Raul Kripalani [mailto:r...@evosent.com] > >> Gesendet: Freitag, 27. September 2013 15:36 > >> An: users@camel.ap

Re: CamelTestSupport Needs a New Method

2013-09-28 Thread James Carman
of getMockEndpoint(), >> describe the >> "auto-creation" behaviour and link to context.hasEndpoint(uri) ... >> >> >> Jan >> >> >>> -Ursprüngliche Nachricht- >>> Von: Raul Kripalani [mailto:r...@evosent.com] >>> Ge