File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
grails-test-suite-uber/src/test/groovy/grails/test/mixin Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,24 @@ class UrlMappingsTestMixinTests {
137137 }
138138 }
139139 }
140+
141+ @Test
142+ voide testGrails9110() {
143+ mockController(UserController )
144+ mockUrlMappings(GRAILS9110UrlMappings )
145+ shouldfail(ComparisonFailure ) {
146+ assertForwardUrlMapping(" /user" , controller :" user" , action :" publicProfile" ) {
147+ param1 = " true"
148+ }
149+ }
150+ assertForwardUrlMapping(" /user" , controller :" user" , action :" publicProfile" ) {
151+ boolParam = true
152+ strParam = " string"
153+ numParam = 123
154+ objParam = [test :true ]
155+ dateParam = new Date (1 )
156+ }
157+ }
140158}
141159
142160class AnotherUrlMappings {
@@ -180,3 +198,14 @@ class GRAILS5222UrlMappings {
180198 }
181199 }
182200}
201+
202+ class GRAILS9110UrlMappings {
203+ static mappings = {
204+ " /user" (controller :" user" , action :" publicProfile" ) {
205+ boolParam = true
206+ strParam = " string"
207+ numParam = 123
208+ dateParam = new Date (1 )
209+ }
210+ }
211+ }
You can’t perform that action at this time.
0 commit comments