Clone this repo:
  1. a87b7d3 Merge changes from topic "junit-soong" am: 9f35e340ac by Colin Cross · 6 weeks ago master
  2. 9f35e34 Merge changes from topic "junit-soong" by Colin Cross · 6 weeks ago
  3. 2612c38 Convert external/hamcrest to Android.bp by Colin Cross · 7 weeks ago
  4. ffc2d31 Add host build for hamcrest-library. by Yusuf Mohsinally · 4 months ago
  5. 2c2a845 Merge changes from topic 'upgrade-hamcrest-to-2.0' am: f324aac9e2 am: 0d446c0a6f by Paul Duffin · 9 months ago oreo-dev oreo-dr1-dev oreo-dr1-release oreo-dr2-release oreo-dr3-release android-8.0.0_r21 android-8.0.0_r22 android-8.0.0_r23 android-8.0.0_r24 android-8.0.0_r25 android-8.0.0_r26 android-8.0.0_r27 android-8.0.0_r33 android-8.0.0_r34 android-vts-8.0_r1 android-vts-8.0_r2


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.