It depends what you're trying to test: the network interface, or the
service API. There's no need to create (or use) the network interface
if what you actually want to test is the service API.
Vincenzo Vitale wrote:
Hi,
I would like to automatic testing my web services out of the box, that is
integrated in an application server I can start in a JUnit test case.
My idea is using Jetty to launch the application I'm writing and then call
the webservice with a dynamic client configured with Spring (extending
AbstractDependencyInjectionSpringContextTests). BTW I don't like this
approach (launching a web server cannot be permitted in some environment and
also the port must not be used), moreover I also need to think how to create
a mock data provider.
There is a better way to do it?
Thanks,
Vicio.