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
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
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
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
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
;> 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
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
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