I am working on Controller Test in Grails 2.2.3 and I have a Date field in a Domain. However when you are testing Controller you suppose to put everything into params and apparently params must have everything in Strings.
How do I put Date into params?
Example of params:
params["issueNumber"] = 1
params["dateOfIssue"] = "2014-05-16 09:17:38 EDT"
params["placements"] = [location:"Sample location", page:1, column:1, row:1]
params["newsPaper"] = [name:"Sample Ad Name"]
For "placements" & "newsPaper" - they are param representation of other domains.
Above example fails on controller.save()
and doesn't output much of useful information.
Thank you.