Re: Unit Testing REST DSL Endpoints

2018-12-20 Thread Bradford Fisher
Awesome! Thanks Claus! On Thu, Dec 20, 2018 at 5:38 PM Claus Ibsen wrote: > On Thu, Dec 20, 2018 at 11:34 PM Bradford Fisher > wrote: > > > > Hey Claus, > > > > Thanks for responding! I was actually just considering routing the REST > DSL > > Endpoints directly to the "direct" endpoint and then

Re: Unit Testing REST DSL Endpoints

2018-12-20 Thread Claus Ibsen
On Thu, Dec 20, 2018 at 11:34 PM Bradford Fisher wrote: > > Hey Claus, > > Thanks for responding! I was actually just considering routing the REST DSL > Endpoints directly to the "direct" endpoint and then testing from the > direct Endpoint onward. > > Just to clarify, you are suggesting something

Re: Unit Testing REST DSL Endpoints

2018-12-20 Thread Bradford Fisher
Hey Claus, Thanks for responding! I was actually just considering routing the REST DSL Endpoints directly to the "direct" endpoint and then testing from the direct Endpoint onward. Just to clarify, you are suggesting something similar to: rest("/test") .post() .route() .to("direct:pr

Re: Unit Testing REST DSL Endpoints

2018-12-20 Thread Claus Ibsen
So what you should/can advice is the route that you are calling via direct, eg the route that you may have the starts from direct:out On Thu, Dec 20, 2018 at 11:13 PM Claus Ibsen wrote: > > Hi > > The advice with functionality is for regular Camel routes, eg they > start via from() > So what you

Re: Unit Testing REST DSL Endpoints

2018-12-20 Thread Claus Ibsen
Hi The advice with functionality is for regular Camel routes, eg they start via from() So what you do is not supported. On Thu, Dec 20, 2018 at 10:15 PM Bradford Fisher wrote: > > I'm trying to replace a REST DSL "from" Endpoint using adviceWith and > replaceFromWith appears to be failing becaus

Unit Testing REST DSL Endpoints

2018-12-20 Thread Bradford Fisher
I'm trying to replace a REST DSL "from" Endpoint using adviceWith and replaceFromWith appears to be failing because Camel is appending a routeId parameter to the end of the direct URI. Any suggestions on how to fix this? I've included below a sample Test class illustrating the issue as well as the