Related Projects
Here are some projects that provide additional features and matchers
- Awaitility (a DSL that allows you to express expectations of an asynchronous system in a concise and easy to read manner)
- Hamcrest 1.3 Utility Matchers (Java matchers like CollectionMatchers, MapMatchers, FieldMatcher, SerializableMatcher etc)
- Hamcrest auto matcher (uses reflection to automatically match model classes)
- Hamcrest Composites (for comparing complex Java objects with better testability)
- Hamcrest Date (for comparing dates)
- Hamcrest HAR (for HTTP archive files)
- Hamcrest Java Extras (currently only a couple of Json matchers)
- Hamcrest JSON (for comparing entire JSON documents)
- Hamcrest Mail (for comparing types from the
javax.mail
package) - Hamcrest Path (for testing path existence and permissions)
- Hamcrest Querydsl (for checking query results: hasResultSize, hasColumnRange, hasColumnMax, hasColumnMin, hasColumnContainingAll, hasColumnContainingAny)
- Hamcrest Result Set Matcher (comparing JDBC result set against each other or structures)
- Hamcrest Text Patterns
- hamcrest-pojo-matcher-generator (Annotation processor to generate feature-matchers based on your POJOs)
- http-matchers (Matchers to test your web service via the standard Java API for RESTful Services (JAX-RS))
- json-path-matchers (for evaluating JSON path expressions)
- JsonUnit (for comparing JSON structures jsonEquals, jsonPartEquals)
- Proboscis (a tiny java library for polling for a result, originally intended for tested asynchronous systems)
- Shazamcrest (Matchers for beans with custom field matching and nice failure messages)
- Spotify’s hamcrest matchers (Matchers for POJOs, JSON, and some of the types introduced in Java 8)
- valid4j (assertion and validation library, i.e supporting design-by-contract style and/or recoverable input validation)