Grails JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile
Grails
  • Grails
  • GRAILS-787 Top level task: Improve Grails unit t...
  • GRAILS-3932

Mocking DynamicFinders: Check for 'order' params

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.0.4
  • Fix Version/s: 1.0.5, 1.1-RC1
  • Component/s: Testing
  • Labels:
    None
  • Environment:
    Grails 1.0.x + Testing Plugin 0.4
  • Patch Submitted:
    Yes

Description

The testing plugin doesn't check the order-param on dynamic-finders when doing sorting.
This is very useful and I think it could be added easily. Just add the following lines to MockUtils.addDynamicFinders:

 
if (params['order']=='desc') {
     result = result.reverse()
 }

I attached the patch-file.

P.S.: This should be assigned to Peter and should be a subtask of GRAILS-787. Don't know how to handle this. Permissions ?

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    Check_for_Order_param_in_DynamicFinders.patch
    02/Feb/09 12:51 PM
    0.8 kB
    Mos

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Git Commits
Hide
Permalink
Graeme Rocher added a comment - 18/May/11 8:41 AM

Bulk closing bunch of resolved issues

Show
Graeme Rocher added a comment - 18/May/11 8:41 AM Bulk closing bunch of resolved issues

People

  • Assignee:
    Peter Ledbrook
    Reporter:
    Mos
Vote (0)
Watch (1)

Dates

  • Created:
    02/Feb/09 12:51 PM
    Updated:
    18/May/11 8:41 AM
    Resolved:
    03/Feb/09 2:57 AM

Agile

  • View on Board
  • Atlassian JIRA (v5.2.1#813-sha1:277a546)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Grails project. Try JIRA - bug tracking software for your team.