Issue Details (XML | Word | Printable)

Key: GRAILS-2470
Type: Test Test
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Graeme Rocher
Reporter: Jason Rudolph
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Grails

Patch: Additional Tests for WebUtils#getFormatFromURI

Created: 16/Feb/08 10:24 PM   Updated: 18/Feb/08 04:08 AM   Resolved: 18/Feb/08 04:08 AM
Return to search
Component/s: None
Affects Version/s: 1.0.1
Fix Version/s: 1.0.1

Time Tracking:
Not Specified

File Attachments: 1. File additional_tests_for_WebUtils.diff (0.7 kB)


Testcase included: yes
Patch Submitted: Yes


 Description  « Hide

The attached patch includes additional tests for WebUtils#getFormatFromURI. The existing assertions in WebUtilsTest only cover the cases where the URI actually includes a format. These additional assertions cover the scenarios where the URI contains no format and #getFormatFromURI must return null.



Graeme Rocher added a comment - 18/Feb/08 04:08 AM

applied. thanks