Hamcrest v2.1-rc1 Release Notes
Release Date: 2018-11-25 // over 5 years ago-
Overview
🚀 After a long hiatus without releases, this version simplifies the packaging of
Hamcrest into a single jar:hamcrest-<version>.jar
. Other big changes include
Java 9 module compatibility, along with numerous other improvements and bug
🛠 fixes.💥 Breaking Changes
Although the class API has not changed since Hamcrest 1.3, the way that the
📦 project is packaged has changed. Refer to the Hamcrest Distributables
📚 documentation for more information.🔄 Changes
- Publish a single jar
hamcrest-2.1.jar
- 📚 Documentation updates
- ➕ Add implementation for CharSequence length matcher
- 🛠 Fix for TypeSafeDiagnosingMatcher can't detect generic types for subclass
- 📇 Renamed IsCollectionContaining to IsIterableContaining
- 👉 Make Hamcrest an OSGI bundle
- ➕ Add StringRegularExpression matcher
- 🛠 Fix StringContainsInOrder to detect if a repeated pattern is missing
- ➕ Add ArrayAsIterableMatcher
- 🛠 Fix description for IsEqualIgnoringCase
- 🛠 Fix JavaDoc examples
🔖 Version 2.0.0.0 Changes
🔖 Version 2.1-rc1 also includes changes previous released (but un-tagged as version 2.0.0.0). These changes include:
- ⬆️ Upgraded to Java 7
- 🏗 Build with Gradle
- Publish a single jar java-hamcrest-2.0.0.0.jar
- ✂ Removed deprecated methods from previous release
- 👌 Improve mismatch description of hasItem/hasItems
- General improvements to mismatch descriptions
- Several JavaDoc improvements and corrections
- 🗄 Deprecated several matcher factory methods of the for "isXyz"
- 🛠 Fix GH issue #75 - address doclint errors reported in JDK 1.8
- 🛠 Fix GH issue #69 - Iterable contains in order is null-safe
- 🛠 Fix GH issue #59 - added equalToObject() (i.e. unchecked) method
- 🛠 Fix GH issue #25 - arrayContaining(null, null) cause NullPointerException
- 🛠 Fix GH issue #36 - string matching on regular expressions
- 🛠 Fix GH issue #8 - isCloseTo() shows wrong delta in mismatch description
- 🛠 Fix GH issue #59 - add untyped version of equalTo, named equalToObject
- 🛠 Fix GC issue #131 - Implement IsEmptyMap, IsMapWithSize
- 🛠 Fix GC issue #187 - IsArray.describeMismatchSafely() should use Matcher.describeMismatch
- 🛠 Fix GC issue #155 - Add Matcher implementation for files
- 🛠 Fix GC issue #69 - fix NPE in IsIterableContainingInOrder
- Publish a single jar