Hi
On 20/10/11 17:52, Guy Pardon wrote:
Hi,
With JAXWS/SOAP, we can unit test services as explained in
http://www.jroller.com/gmazza/entry/junit_web_service_testing
Does something similar exist for JAXRS/REST?
We can't do the local transport testing just yet though there've been an
enhancement request - that is certainly possible to do with proxies -
but at the moment HTTPUrlConnection has not been completely removed yet
from the proxy code - we'll be there soon enough I guess once the
explicit support for async invocations gets implemented.
Using embedded Jetty is easy enough, this post is a bit old but captures
it well:
http://aruld.info/cxf-22-in-action-services-design-simplified/
Spring Unit testing is also possible, David Karr has a lot of experience
with it
Cheers, Sergey
Thanks
Guy