Description:
This update for ant, hamcrest, junit fixes the following issues:
ant, ant-antlr, ant-junit5, ant-junit:
- Put hamcrest on the classpath of ant-junit module
hamcrest was updated to version 2.2:
- Version 2.2:
* This version simplifies the packaging of Hamcrest into a single 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,
and in particular the section on Upgrading from Hamcrest 1.x
+ The org.hamcrest.Factory annotation has been removed
(it should not be used in client code)
* Improvements:
+ AllOf/AnyOf: Pass the matchers to constructor using varargs
+ Matchers.anyOf: Fixed generic bounds compatibility for JDK 11
+ AssertionError message is unhelpful when match fails for byte
type
+ Use platform specific line breaks
+ The build now checks for consistent use of spaces
* Bugs fixed and other changes:
+ Fixed compatibility issue for development with Android D8
+ Fixed typo in license name
+ 1.3 compatible constructors for string matchers
+ Fixed for split packages with Java 9 modules
+ Documentation updates
+ Added implementation for CharSequence length matcher
+ Fixed for TypeSafeDiagnosingMatcher can't detect generic types
for subclass
+ Renamed IsCollectionContaining to IsIterableContaining
+ Make Hamcrest an OSGI bundle
+ Added StringRegularExpression matcher
+ Fixed StringContainsInOrder to detect if a repeated pattern is
missing
+ Added ArrayAsIterableMatcher
+ Fixed description for IsEqualIgnoringCase
+ Fixed JavaDoc examples
+ Upgraded to Java 7
+ Build with Gradle
+ Deprecate IsCollectionContaining and IsArrayContainingXXX
+ 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"
+ Fixed address doclint errors reported in JDK 1.8
+ Fixed Iterable contains in order is null-safe
+ Added equalToObject() (i.e. unchecked) method
+ Fixed arrayContaining(null, null) cause NullPointerException
* Fixed string matching on regular expressions
* Fixed isCloseTo() shows wrong delta in mismatch description
* Fixed add untyped version of equalTo, named equalToObject
* Implement IsEmptyMap, IsMapWithSize
* Fixed IsArray.describeMismatchSafely() should use
Matcher.describeMismatch
* Added Matcher implementation for files
* Fixed NPE in IsIterableContainingInOrder
junit:
- Generate anew the ant build system using the maven pom.xml
- Fetch sources from github by source service and filter out stale
hamcrest binaries.
- Port to hamcrest 2.2 unconditionally
- Removed deprecated assertThat
- Let ant build with --release 8 if the compiler knows that option.
This allows us to avoid incompatible exception declarations
in ObjectInputStream.GetField.get(String,Object) in java >= 20