alexruiz/fest-assert-2.x — pull request #117 by sberan (2012-10-12 21:02:19+00:00)
Title: Add convenience methods for MapEntry assertions

Quite often, I find myself testing map entries in the following way:

Map address = ....
assertThat(address)
.hasSize(15)
.includes(
MapAssert.entry("zip", "43865"),
MapAssert.entry("lastName", "Frazier"),
MapAssert.entry("state", "IA"),
MapAssert.entry("city", "Culloden")
);

This change allows me to simplify the map assertions by getting rid of the repeated MapAssert.entry calls:

Map address = ....
assertThat(address)
.hasSize(15)
.includesEntry("zip", "43865")
.includesEntry("lastName", "Frazier")
.includesEntry("state", "IA")
.includesEntry("city", "Culloden");

Please let me know if there's anything I can do to clean up the request!

Thanks for all your work on FEST! Assert and Reflect are life savers!
Sam