Kevin Richards
2013-02-12 11:46:17 UTC
Hi,
We have some controllers that redirect using the UrlMappings named mappings
feature e.g.
redirect mapping: 'dbgConfirm', params:[gameName: command.gameName]
When unit testing the response.redirectUrl is not returning the mapped
value, it just returns the default controller action. How can we
initialise or mock the UrlMappings named mappings.
Thanks
Kevin Richards
Energized Work
email: ***@energizedwork.com <***@avoco.eu>
mobile: 07776304005
http://www.linkedin.com/in/grailsdeveloper
After 12 agile years has anything really changed?
Read âNo Bullâ by @energizedwork at http://nobull.energizedwork.com (PDF)
We have some controllers that redirect using the UrlMappings named mappings
feature e.g.
redirect mapping: 'dbgConfirm', params:[gameName: command.gameName]
When unit testing the response.redirectUrl is not returning the mapped
value, it just returns the default controller action. How can we
initialise or mock the UrlMappings named mappings.
Thanks
Kevin Richards
Energized Work
email: ***@energizedwork.com <***@avoco.eu>
mobile: 07776304005
http://www.linkedin.com/in/grailsdeveloper
After 12 agile years has anything really changed?
Read âNo Bullâ by @energizedwork at http://nobull.energizedwork.com (PDF)