Claus Ibsen-2 wrote
> Have you tried with
> 
>          weaveById(endpointId).replace().to(newUri);

Removing the selectFirst I get the same result.

However, if I use

    weaveByToString(uriPattern).selectFirst().replace().to(newUri);

then the end point seems to be mocked successfully. Which is fine for the
particular test I'm writing, but it would be good to know why I'm not able
to mock endpoints by id.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Mocking-an-endpoint-within-a-try-catch-block-tp5727081p5727127.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to