Java Reference
In-Depth Information
DELETE requests, however. These are discussed in some detail in chapter 8 , but for now
I'll use a third-party open source library.
The HTTPBuilder library ( http://groovy.codehaus.org/modules/http-builder/ ) is a Groovy
wrapper around Apache's HttpClient library. It uses Groovy to make it easy to execute
HTTP requests and process the responses. To use it, I added the following dependency to
my Gradle build file:
testCompile 'org.codehaus.groovy.modules.http-builder:http-builder:0.6'
With this addition, the following listing now shows a variety of integration tests. The test
class includes tests both with the HTTPBuilder client and without.
Listing 10.11. ServletIntegrationTests.groovy : accessing deployed servlets
Search WWH ::




Custom Search