Clone this repo:
  1. 0d446c0 Merge changes from topic 'upgrade-hamcrest-to-2.0' am: f324aac9e2 by Paul Duffin · 6 months ago master n-iot-preview-4 o-iot-preview-5 android-n-iot-preview-4 android-o-iot-preview-5 android-o-preview-2 android-o-preview-3 android-o-preview-4 android-wear-o-preview-3
  2. f324aac Merge changes from topic 'upgrade-hamcrest-to-2.0' by Paul Duffin · 6 months ago o-preview android-n-mr2-preview-2 android-o-preview-1
  3. 9599ee2 Temporarily add void is(Class) to cause compile time errors by Paul Duffin · 7 months ago
  4. 32dc498 Make it compile in error prone by Paul Duffin · 7 months ago
  5. 6f4e890 Replace org.hamcrest.Factory for backwards compatibility by Paul Duffin · 7 months 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.