How can I unit test a class which requires a web service call?
- by Chris Cooper
I'm trying to test a class which calls some Hadoop web services. The code is pretty much of the form:
method() {
...use Jersey client to create WebResource...
...make request...
...do something with response...
}
e.g. there is a create directory method, a create folder method etc.
Given that the code is dealing with an external web…