All Versions
Latest Version
Avg Release Cycle
346 days
Latest Release
1650 days ago

Changelog History
Page 2

  • v1.3.RC2

    April 01, 2012
  • v1.3.RC1

    April 01, 2012
  • v1.2 Changes

    May 16, 2009
    • ➕ 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
  • v1.1 Changes

    June 30, 2007
    • Hamcrest Generator now includes JavaDoc and parameter names in generated code by using QDox to parse the source code.
    • 🚚 Created hamcrest-core.jar (and removed hamcrest-api.jar). Moved core set of matchers (and, eq, not, etc) to this package to make it more practical for external libraries to embed Hamcrest.
    • Created CoreMatchers (static import sugar) in hamcrest-core.jar.
    • StringBuilder can use any Appendable (not just StringBuffer).
    • ➕ Added sensible toString() method to BaseMatcher.
    • Created StringDescription.asString() alias (because toString() caused issues with static imports).
    • 😌 Relaxed isInstanceOf() matcher generic type so it can be used on any kind of object. e.g. assertThat(someUnknownObject, isInstanceOf(String.class));
    • ➕ Added any(Class), null(Class) and notNull(Class) matchers, which returns Matcher. Helpful when the compiler struggles with type inference.
    • Modified anyOf() and allOf() to accept mixed-types.
    • TypeSafeMatcher.matchesSafely() is now public.
    • Generator recognizes @Factory methods that return subclass of Matcher. (Fix by David Saff)
  • v1.0 Changes

    🎉 Initial release.

    • 👌 Support for namespaces in HasXPath
    • 🐛 Bug fix for matching empty elements with HasXPath