Thanks @noorul!

I'll merge this PR, but after some discussions in the mailing list, we are 
improving the way we implement unit tests. We are switching to use 
[mockwebserver](http://code.google.com/p/mockwebserver/) instead of our custom 
mock (generated by the `requestSendsResponse` methods). The main difference 
when using mockwebserver is that the request is actually sent over the backing 
http connection, so the tests are more complete and give us more confidence 
that our apis work as expected.

It would be great to use that in upcoming pull requests. There are still no 
tests in jclouds-chef that use it, but if you are willing to start with a test 
base class we can reuse (and perhaps start changing some existing ExpectTest to 
the new MockTest), you can take a look at the MockTests classes in the 
[openstack-swift](https://github.com/jclouds/jclouds-labs-openstack/tree/master/openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/features)
 api to see an example of how they work (they are pretty similar to our Expect 
tests, though).

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-chef/pull/31#issuecomment-26373391

Reply via email to