Uploaded image for project: 'Grails'
  1. Grails
  2. GRAILS-7969

redirectArgs no longer available for controller unit tests


    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0-M1
    • Fix Version/s: None
    • Component/s: Testing
    • Labels:


      redirectArgs is no longer available in controller unit tests for Grails 2.0. Instead response.redirectedUrl seems to be the way forward (that's all that is mentioned in the docs). However this means that the test is necessarily also testing the UrlMappings as well as the controller. Personally I would like to see the return of redirectArgs and consider it a bug that it has gone away - though clearly whether it's a bug or an improvement is open to interpretation. It will break existing tests and make them harder and more confusing to fix when people move to 2.0, which I think is good reason to get it working again.

        Issue Links


          Sam Carr created issue -
          Peter Ledbrook made changes -
          Field Original Value New Value
          Link This issue relates to GRAILS-7617 [ GRAILS-7617 ]
          Burt Beckwith made changes -
          Workflow Grails2 [ 70007 ] jira [ 71646 ]
          Burt Beckwith made changes -
          Workflow jira [ 71646 ] Grails2 [ 80295 ]
          Peter Ledbrook made changes -
          Last Reviewed 01/Jan/10
          Peter Ledbrook made changes -
          Workflow Grails2 [ 80295 ] jira [ 88231 ]
          Peter Ledbrook made changes -
          Workflow jira [ 88231 ] Grails2 [ 96443 ]


            • Assignee:
              Sam Carr
            • Votes:
              12 Vote for this issue
              8 Start watching this issue


              • Created:
                Last Reviewed: