Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:grails/grails-core

  • Loading branch information...
commit 85604aaa231c590ae8c0091fc240ab4ecaec7e57 2 parents ab75b5c + f8a5262
@graemerocher graemerocher authored
View
2  grails-plugin-testing/src/main/groovy/grails/test/mixin/web/UrlMappingsUnitTestMixin.groovy
@@ -234,7 +234,7 @@ class UrlMappingsUnitTestMixin extends ControllerUnitTestMixin {
paramAssertions.resolveStrategy = Closure.DELEGATE_ONLY
paramAssertions.call()
params.each {name, value ->
- assertEquals("Url mapping '$name' parameter assertion for '$url' failed", value.toString(), mapping.params[name])
+ assertEquals("Url mapping '$name' parameter assertion for '$url' failed", value, mapping.params[name])
}
}
return true
View
30 grails-test-suite-uber/src/test/groovy/grails/test/mixin/UrlMappingsTestMixinTests.groovy
@@ -137,6 +137,24 @@ class UrlMappingsTestMixinTests {
}
}
}
+
+ @Test
+ void testGrails9110() {
+ mockController(UserController)
+ mockUrlMappings(GRAILS9110UrlMappings)
+ shouldFail(ComparisonFailure) {
+ assertForwardUrlMapping("/user", controller:"user", action:"publicProfile") {
+ param1 = "true"
+ }
+ }
+ assertForwardUrlMapping("/user", controller:"user", action:"publicProfile") {
+ boolParam = true
+ strParam = "string"
+ numParam = 123
+ objParam = [test:true]
+ dateParam = new Date(1)
+ }
+ }
}
class AnotherUrlMappings {
@@ -180,3 +198,15 @@ class GRAILS5222UrlMappings {
}
}
}
+
+class GRAILS9110UrlMappings {
+ static mappings = {
+ "/user"(controller:"user", action:"publicProfile") {
+ boolParam = true
+ strParam = "string"
+ numParam = 123
+ objParam = [test:true]
+ dateParam = new Date(1)
+ }
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.