Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: FEST-Assert 1.2
-
Fix Version/s: FEST-Assert 1.3
-
Component/s: Assert
-
Labels:None
-
Number of attachments :
Description
One thing I miss a lot from hamcrest are the hasItem and related matchers for Iterables. It would be great if fest-asserts had an IterableAssert that gets returned for iterables.
Implementations would be trivial with Google Collections (com.google.common.collect.Iterables, etc.) available in final form in Maven Central repository now:
For familiarity for Hamcrest users, hasItem might be nice, but contains would be more consistent.