Hamcrest

Java library of matchers for building test expressions
Download

Hamcrest Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Price:
  • FREE
  • Publisher Name:
  • Hamcrest Team
  • Publisher web site:
  • http://code.google.com/p/hamcrest/
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 1.5 MB

Hamcrest Tags


Hamcrest Description

Java library of matchers for building test expressions Hamcrest is a free and open source Java library of matcher objects (also known as constraints or predicates) allowing 'match' rules to be defined declaratively, to be used in other frameworks. Typical scenarios include testing frameworks, mocking libraries and UI validation rules.NOTE: Hamcrest is licensed and distributed under the terms of the BSD License. Requirements: · Java What's New in This Release: · 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.


Hamcrest Related Software