Issue Details (XML | Word | Printable)

Key: FEST-147
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Ted Young
Reporter: Ansgar Konermann
Votes: 0
Watchers: 0
Operations

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

Allow reuse of formatting helpers in class Formatting by making them public

Created: 23/Jun/09 03:31 AM   Updated: 02/Jul/09 11:51 PM   Resolved: 02/Jul/09 11:51 PM
Return to search
Component/s: Assert
Affects Version/s: FEST-Assert 1.1
Fix Version/s: FEST-Assert 1.2

Time Tracking:
Original Estimate: 20 minutes
Original Estimate - 20 minutes
Remaining Estimate: 20 minutes
Remaining Estimate - 20 minutes
Time Spent: Not Specified
Time Spent - Not Specified

File Attachments: 1. Text File make-formatting-methods-public.patch (1 kB)


Testcase included: yes
Patch Submitted: Yes


 Description  « Hide

When writing custom assert classes, the static helper functions in class Formatting would come handy. Unfortunately, they are package protected. Hence, they cannot be used outside the FEST namespace. Of course, custom assertion classes populate their own namespace and are thus excluded from using Formatting.*

Patch makes methods format and inBrackets public. Both methods already have unit test coverage.



Ted Young added a comment - 02/Jul/09 11:51 PM

Fixed with Revision #268 Committed by tedyoung at 7/2/09 9:46:33 PM