Go to file
2024-08-29 13:42:46 +00:00
_service OBS-URL: https://build.opensuse.org/package/show/Java:packages/hamcrest?expand=0&rev=56 2024-08-27 09:28:35 +00:00
.gitattributes OBS-URL: https://build.opensuse.org/package/show/Java:packages/hamcrest?expand=0&rev=56 2024-08-27 09:28:35 +00:00
.gitignore OBS-URL: https://build.opensuse.org/package/show/Java:packages/hamcrest?expand=0&rev=56 2024-08-27 09:28:35 +00:00
hamcrest-3.0.pom OBS-URL: https://build.opensuse.org/package/show/Java:packages/hamcrest?expand=0&rev=56 2024-08-27 09:28:35 +00:00
hamcrest-3.0.tar.xz OBS-URL: https://build.opensuse.org/package/show/Java:packages/hamcrest?expand=0&rev=56 2024-08-27 09:28:35 +00:00
hamcrest-build.xml OBS-URL: https://build.opensuse.org/package/show/Java:packages/hamcrest?expand=0&rev=56 2024-08-27 09:28:35 +00:00
hamcrest.changes OBS-URL: https://build.opensuse.org/package/show/Java:packages/hamcrest?expand=0&rev=58 2024-08-27 14:37:10 +00:00
hamcrest.spec OBS-URL: https://build.opensuse.org/package/show/Java:packages/hamcrest?expand=0&rev=56 2024-08-27 09:28:35 +00:00
LICENSE OBS-URL: https://build.opensuse.org/package/show/Java:packages/hamcrest?expand=0&rev=56 2024-08-27 09:28:35 +00:00
README.md OBS-URL: https://build.opensuse.org/package/show/Java:packages/hamcrest?expand=0&rev=56 2024-08-27 09:28:35 +00:00

JavaHamcrest

Build Status Maven Central License

Java Hamcrest

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.

The tutorial is good place to see how Hamcrest can be used.

Downloads

You can obtain Hamcrest binaries from maven central. If you are using build tooling such as Maven, Gradle, etc, you can simply add a dependency declaration to your build definition. Learn more at Hamcrest Distributables.

Documentation

Documentation can be found on the Hamcrest site. For a detailed list of recent changes, see CHANGES.md

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.

Build from Source

Building Hamcrest from source requires a minimum of JDK 1.8.

Clone the repository, and from the top level directory in the repo workspace run the following command:

./gradlew clean build javadoc

This will download the correct version of Gradle, do a full clean build, run all tests and (if successful) package the compiled classes in a jar file. The resulting look under the hamcrest/build/libs directory.

Acknowledgements

Developers:

  • Joe Walnes
  • Nat Pryce
  • Steve Freeman

Contributors:

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

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