Clone this repo:
  1. f324aac Merge changes from topic 'upgrade-hamcrest-to-2.0' by Paul Duffin · 4 weeks ago master
  2. 9599ee2 Temporarily add void is(Class) to cause compile time errors by Paul Duffin · 8 weeks ago
  3. 32dc498 Make it compile in error prone by Paul Duffin · 9 weeks ago
  4. 6f4e890 Replace org.hamcrest.Factory for backwards compatibility by Paul Duffin · 9 weeks ago
  5. e3f85a6 Remove org.hamcrest.beans and update Matchers by Paul Duffin · 9 weeks ago


Build Status

Java Hamcrest

Licensed under BSD License.

What is Hamcrest?

Hamcrest is a library of matchers, which can be combined in to create flexible expressions of intent in tests. They've also been used for other purposes.


You can obtain Hamcrest binaries from maven central, or from [google code downloads][].


For Hamcrest extension projects see the hamcrest extensions page.


Documentation can be found on the Hamcrest site.

Reporting Bugs/Issues

If you find an issue with Java Hamcrest, please report it via the GitHub issue tracker, after first checking that it hasn't been raised already.


To build, please read BUILDING.txt



  • Joe Walnes
  • Nat Pryce
  • Steve Freeman


  • Robert Chatley
  • Tom White
  • Neil Dunn
  • Dan North
  • Magne Rasmussen
  • David Saff
  • Tom Denley

Also, thanks to everyone who has worked on DynaMock, nMock, jMock, EasyMock and MiniMock! These libraries inspired Hamcrest.