andresteingress/grails-core — comment on commit e65fc3c35d5a7984769ee9cf0c009af3cbe32ee8
File: grails-plugin-testing/src/main/groovy/grails/test/mixin/web/UrlMappingsUnitTestMixin.groovy line 238
By andresteingress:

why not access the parameter value via webRequest[name]? AbstractUrlMappingInfo.populateParamsForMapping should have populated the parameter values, thus

assertForwardUrlMapping("/test/1", controller: "grailsUrlMappingsTestCaseFake", action: "action1") {
id = p1
}

would be possible for

"/test/$id"(...) {
id = { "p${params.id}" }
}