Issue Details (XML | Word | Printable)

Key: TEST-1
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Gabriele Catania
Reporter: Gabriele Catania
Votes: 0
Watchers: 0
Operations

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

Collection assertion framework

Created: 25/May/10 14:29   Updated: 06/Jun/10 17:13   Resolved: 06/Jun/10 17:13
Component/s: None
Affects Version/s: None
Fix Version/s: None


 Description  « Hide

Add utilities to perform assertions on collections and maps and obtain meaningful assertion error messages.
I.e. when asserting equality between lists, it is often useful to know at which index the first invalid element was found.



Fabrizio Giustina added a comment - 25/May/10 16:21 - edited

maybe you can already find something in junit addons? http://junit-addons.sourceforge.net/
(PS. java 1.4, no generics anyway...)


Gabriele Catania added a comment - 25/May/10 19:06

Also, junit addons seem to lack specific support for maps and order-sensitive/insensitive comparisons.
Looking around for something existing I could use, I found FEST assertions quite interesting, but I really don't feel like importing into my current project a library so complex for now...


Gabriele Catania added a comment - 06/Jun/10 17:13

Functionality for collections and corresponding unit tests were added.