I have a project that contains both the ws client and service (JAX-WS). Is there a way of having the ws deploy during automated testing such that I can have my client tests encompass the calls to the service?
Obviously this would require deployment to an application server… or is this kind of testing ill-advised?
I found a suitable solution to this problem. Using embedded Tomcat (7.0.11), I was able to successfully deploy my web-service programmatically during the running of the unit test.
This approach suited me well as I wanted to automate the testing of a web-service client. As Piyush pointed out, soapUI is a perfect way to perform integration testing.
Edit
If you are using
context.xmlyou will need to define it like so: