Just curious, why you need to stub the host and port.  I am sure you don't
want to test what the rest call will return.  If so, then it will be a
restlet test, not yours . 
In order to test your route builder which is calling the restlet, you can
mock the restlet uri by using MockEndPoint.  That is simpler than stubbing.

MockEndpoint uri = getMockEndpoint("mock:restletUri");
context.addEndpoint("restlet://http://localhost:8080/whatever";, uri);




--
View this message in context: 
http://camel.465427.n5.nabble.com/Testing-Restlet-endpoints-after-refactoring-to-using-servlet-container-tp5716002p5764928.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to