Skip to content
Browse files

Add unit tests for GRAILS-9110

  • Loading branch information...
1 parent f07fdf1 commit b55d2ccbde8a70bfadb92165cac04ad4704f6dab @bluesliverx bluesliverx committed with jeffbrown May 16, 2012
View
29 grails-test-suite-uber/src/test/groovy/grails/test/mixin/UrlMappingsTestMixinTests.groovy
@@ -137,6 +137,24 @@ class UrlMappingsTestMixinTests {
}
}
}
+
+ @Test
+ voide 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,14 @@ class GRAILS5222UrlMappings {
}
}
}
+
+class GRAILS9110UrlMappings {
+ static mappings = {
+ "/user"(controller:"user", action:"publicProfile") {
+ boolParam = true
+ strParam = "string"
+ numParam = 123
+ dateParam = new Date(1)
+ }
+ }
+}

0 comments on commit b55d2cc

Please sign in to comment.
Something went wrong with that request. Please try again.