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.
Description
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.
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 - 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...
maybe you can already find something in junit addons? http://junit-addons.sourceforge.net/
(PS. java 1.4, no generics anyway...)