Re: CamelTestSupport Needs a New Method

2013-09-28 Thread Claus Ibsen
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 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

Re: CamelTestSupport Needs a New Method

2013-09-28 Thread kraythe .
...@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 accepts a 2nd argument create which is a boolean. If true, it will create the endpoint

Re: CamelTestSupport Needs a New Method

2013-09-28 Thread James Carman
) ... 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 another signature for that method such that it accepts

CamelTestSupport Needs a New Method

2013-09-27 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

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)

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
(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 another signature for that method

Re: CamelTestSupport Needs a New Method

2013-09-27 Thread kraythe .
) ... 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 another signature for that method such that it accepts