By gdhjones
via city81.blogspot.co.uk
Published: Nov 27 2012 / 08:14
Groovy has an extension to its HTTPBuilder class called RESTClient which makes it fairly easy to test a RESTful web service. This post will describe how to use the RESTClient, how to inject it into a Groovy Spock test class via custom annotations, how to swap the injected client between a real one and a mocked one using Mockito, and how to test it.
Comments
Voters For This Link (5)
Voters Against This Link (0)