Hamcrest v1.2 Release Notes

Release Date: 2009-05-16 // almost 15 years ago
    • โž• Added mismatch reporting
    • โž• Added WithSamePropertyValuesAs matcher
    • ๐Ÿšš Moved any() from IsAnything to IsInstanceOf. It now checks the type of the matched object
    • ๐Ÿšš Moved MatcherAssert from integration to core
    • Tightened up generics.
    • โž• Added IsMapContainingKey and IsMapContainingValue matchers to resolve a generics bug in hasKey and hasValue static factories previously declared in IsMapContaining (ngd)
    • โž• Added IsCollectionOnlyContaining and IsArrayOnlyContaining which matches collections (and arrays) where all match a given matcher. E.g onlyContains(3,4,5) or onlyContains(lessThan(9))
    • ๐Ÿšš text module moved to separate project, hamcrest-text-patterns
    • โž• added more colection matchers: xContainingInAnyOrder, xContainingInOrder, xWithSize
    • ๐Ÿ†• new text Matcher: IsEmptyString
    • hamcrest generator uses method return type