I'd like to test the URL Mappings for a simple REST web service that I'm setting up in Grails. The problem is that the URL mappings are defined with the HTTP method:
class UrlMappings {
static mappings = {
"/blah/$city/$date"(controller:"blah"){
action = [GET:"show", PUT:"update", POST:"save"]
}
}
}
The GrailsUrlMappingsTestCase doesn't seem to support passing in an HTTP method, it just takes a URL and a list of assertions.
Is there a way to get the GrailsUrlMappingsTestCase to play nice with RESTful webservice mappings? Or, is there a different way or better to test URL mappings?