v0.92
Improvements
-
Comparison: Enable ComparableComparisonStrategy for more types
Up until now this strategy only applied to BigDecimals. It has now been extended to automatically apply to all simple types that implement
java.lang.Comparable.The list of types that qualify as simple has also been extended. It now looks as follows:
- all primitive types (int, short, byte, etc.)
- all primitive wrapper types (Integer, Short, Byte, etc.)
- enums
- subclasses of:
java.math.BigDecimaljava.math.BigIntegerjava.lang.CharSequencejava.util.Calendarjava.util.Date
java.lang.Classjava.net.URIjava.net.URLjava.util.Localejava.util.UUID
Of course this behaviour can be overriden via configuration API or property annotations.
To make comparison via
compareTomore reliable, from now oncompareTowill be invoked on theworkingand thebaseobject and both will be considered equal if either one of this comparisons returnstrue. -
Comparison: Dates are now compared via compareTo method to workaround the strictness of java.util.Date's equals method, which only returns true for other java.util.Dates, but not for extending classes like java.sql.Date. [#85]
-
DiffNode: Replaced some constructors with factory methods to better express their intentions.
-
Utilities: Removed some unused collection utility methods.
-
Tests: Migrated many, many more tests from TestNG to Spock.
-
Tests: Upgraded to Groovy 2.3 and Spock 1.0.