Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hamcrest/JavaHamcrest
Java (and original) version of Hamcrest
https://github.com/hamcrest/JavaHamcrest
Last synced: 2 months ago
JSON representation
Java (and original) version of Hamcrest
- Host: GitHub
- URL: https://github.com/hamcrest/JavaHamcrest
- Owner: hamcrest
- License: bsd-3-clause
- Created: 2012-04-01T19:38:04.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2024-10-22T20:53:21.000Z (3 months ago)
- Last Synced: 2024-10-29T10:56:52.006Z (2 months ago)
- Language: Java
- Homepage: http://hamcrest.org/
- Size: 19.2 MB
- Stars: 2,110
- Watchers: 103
- Forks: 378
- Open Issues: 117
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-harmony - Hamcrest - Java(和原始)版本的 Hamcrest (库 / 测试)
- awesome-engineering - hamcrest
- awesome-engineering - hamcrest
README
![JavaHamcrest](http://hamcrest.org/images/logo.jpg)
[![Build Status](https://github.com/hamcrest/JavaHamcrest/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/hamcrest/JavaHamcrest/actions/workflows/build.yml)
[![Maven Central](https://img.shields.io/maven-central/v/org.hamcrest/hamcrest.svg?label=Maven%20Central)](https://search.maven.org/artifact/org.hamcrest/hamcrest)
[![License](https://img.shields.io/github/license/hamcrest/JavaHamcrest.svg)](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](http://hamcrest.org/JavaHamcrest/tutorial) is good place to see how Hamcrest can be used.
## Downloads
You can obtain Hamcrest binaries from [maven central](https://search.maven.org/artifact/org.hamcrest/hamcrest). 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](http://hamcrest.org/JavaHamcrest/distributables).## Documentation
Documentation can be found on the [Hamcrest site](http://hamcrest.org). For a detailed list of recent changes,
see [CHANGES.md](CHANGES.md)## Reporting Bugs/Issues
If you find an issue with Java Hamcrest, please report it via the
[GitHub issue tracker](https://github.com/hamcrest/JavaHamcrest/issues),
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:```shell
./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 FreemanContributors:
* Robert Chatley
* Tom White
* Neil Dunn
* Dan North
* Magne Rasmussen
* David Saff
* Tom Denley
* Joe SchmetzerAlso, thanks to everyone who has worked on DynaMock, nMock, jMock, EasyMock
and MiniMock! These libraries inspired Hamcrest.