Changelog

Release History

Version Date Description
1.1 2009-04-20 Subsequent release
1.0 2008-12-16 Subsequent release
1.0a1 2008-02-18 Subsequent release
0.9.1 2008-02-04 Subsequent release
0.9 2008-01-30 Subsequent release
0.8 2008-01-03 Subsequent release
0.7 2007-11-08 Subsequent release
0.6 2007-10-15 Subsequent release
0.5-SNAPSHOT 2007-09-19 Subsequent release
0.4 2007-09-17 First public release

Release 1.1 - 2009-04-20

Type Changes By
remove Removed method 'size' from GroupAssert. This method should have been removed before releasing 1.0. alruiz
add Added class ListAssert. Fixes FEST-59. Thanks to Konstantin Scheglov, cbraid. alruiz
add Added method 'isEqualTo(double[], Delta)' to DoubleArrayAssert. Fixes FEST-65. Thanks to Stanislaw Osinski. alruiz
remove Converted inner class Delta in DoubleArrayAssert to a top-level class. Inner class Delta has been deprecated and it will be removed in v. 2.0. Fixes FEST-65. Thanks to Stanislaw Osinski. alruiz
fix Method 'isEqualTo(Object[])' in ObjectArrayAssert now uses java.util.Arrays.deepEquals(Object[], Object[]) to compare two arrays. Fixes FEST-66. Thanks to Juhos Csaba-Zsolt. alruiz
add Added method 'isEqualTo(BufferedImage, Threshold)' which tolerates a certain amount of color differences when comparing two images for equality. Fixes FEST-107. Thanks to Jean-Francois Poilpret. alruiz
add Package-protected classes Assert, GenericAssert and GroupAssert are now public. Fixes FEST-108. Thanks to Jacob Fahrenkrug, Timmo Gierke. alruiz
add Package-protected methods in classes Assert, GenericAssert and GroupAssert are now protected. Fixes FEST-108. Thanks to Jacob Fahrenkrug, Timmo Gierke. alruiz

Release 1.0 - 2008-12-16

Type Changes By
add Added method 'doesNotHaveDuplicates(Object...)' to ObjectArrayAssert. Fixes 112. Thanks to Ted Young. wanghy
add Renamed method 'contains(Entry...)' to 'includes(Entry...)' to MapAssert. alruiz
add Assertions for primitive values can also be created from primitive wrappers. Fixes 114. Thanks to Ted Young. wanghy, alruiz
add Added interface org.fest.assertions.Description. Fixes 227. alruiz, wanghy
add Added methods 'as(Description)' and 'describedAs(Description)' to all assertions. Fixes 227. alruiz, wanghy
remove Removed class ThrowableAssert.CauseHierarchyAssert. Fixes 256. alruiz
remove Removed methods 'message', 'causeHierarchy' and 'cause' from ThrowableAssert. Fixes 256. alruiz
remove Removed method 'size' from FileAssert. Fixes 256. alruiz

Release 1.0a1 - 2008-02-18

Type Changes By
add Exceptions thrown by methods 'satisfies' and 'doesNotSatisfy' include the name of Condition class if the Condition's description is not specified. alruiz
add Added method 'doesNotSatisfy' to all assertions. Fixes 46. Thanks to Mark Derricutt. wanghy, alruiz
add Patch: Added support for BigDecimal. Fixes 107. Thanks to Ted Young, David DIDIER. wanghy, alruiz
add Added method 'isEmptyOrNull' to BooleanArrayAssert, ByteAssertArray, CharArrayAssert, CollectionAssert, DoubleArrayAssert, FloatArrayAssert, IntArrayAssert, LongArrayAssert, MapAssert, ShortArrayAssert and StringAssert. alruiz, wanghy
add Added fest-mocks-0.1 and fest-test-0.1 as a 'test' scoped dependencies. alruiz, wanghy
add Added method 'message' to ThrowableAssert. This method returns a StringAssert. alruiz
add Added method 'hasMessage(String)' to ThrowableAssert. alruiz
add Added method 'size' to FileAssert. This method returns a LongAssert. alruiz
fix Fixed bug in FileContentComparator where EOF (end of file) was determined at the wrong time. alruiz, wanghy
add Replaced methods 'hasCauseAsAncestor' and 'hasExactCauseAsAncestor' in ThrowableAssert with the methods 'hasCauseOfType' and 'hasCauseOfExactType' in CauseHierarchyAssert. To get a CauseHierarchyAssert, users need to call the method 'causeHierarchy' in ThrowableAssert. alruiz
add Replaced method 'hasCauseOfType' in ThrowableAssert with method 'cause', which returns another ThrowableAssert for the cause of the actual Throwable. Users can call 'isInstanceOf' in the returned ThrowableAssert. alruiz
add Method 'isInstanceOf' in ObjectAssert and ThrowableAssert throws IllegalArgumentException if the given Class is null. wanghy
add Method 'isInstanceOfAny' in ObjectAssert throws IllegalArgumentException if the given Class array is null or if any element in the given Class array is null. wanghy
fix Fixed typos in Javadocs for class PrimitiveFail. Thanks to Ted Young. alruiz
remove Removed dependency on Apache Velocity. alruiz
remove Removed code generators for assertions for primitive arrays and failure methods for primitives. alruiz
fix Added missing declaration of exceptions in Javadocs. alruiz, wanghy
fix Eliminated inconsistencies and typos in exception messages. alruiz, wanghy

Release 0.9.1 - 2008-02-04

Type Changes By
fix Error messages in ObjectArrayAssert and all the assertion objects dealing with array of primitives where including the description of the assertion object twice. alruiz
fix Error messages in ObjectArrayAssert were using quotes around array of Strings. alruiz

Release 0.9 - 2008-01-30

Type Changes By
add Updated dependency 'fest-util' to version 0.3. wanghy
add Improved Javadoc documentation of the methods 'as' and 'describedAs' in all assertion classes. Fixes 103. Thanks to Ted Young. wanghy
add Added method 'assertThat(Iterator)' to Assertions. This method returns a CollectionAssert. Fixes 101. Thanks to Ted Young. wanghy
add Added methods 'hasAllElementsOfType' and 'hasAtLeastOneElementOfType' to ObjectArrayAssert. Fixes 100. Thanks to Ted Young. alruiz, wanghy
add Added check 'isNotNull' to all the methods in all assertion objects that deal with not-null actual values. wanghy
add Changed access of protected methods to package-protected. wanghy
add Patch: added methods 'isEqualTo' and 'isNotEqualTo' to BooleanAssert. Fixes 96. Thanks to David DIDIER. wanghy
add Patch: added methods 'matches' and 'doesNotMatch' to StringAssert. Fixes 94. Thanks to David DIDIER. wanghy
add Patch: added methods 'isRelative' and 'isAbsolute' to FileAssert. Fixes 93. Thanks to David DIDIER. wanghy
add Added method 'assertThat(Map)' to Assertions. This method returns a MapAssert. Fixes 90. Thanks to David DIDIER. wanghy
add Patch: added class MapAssert. Fixes 90. Thanks to David DIDIER. wanghy
add Patch: added methods 'greaterOrEqualTo' and 'lessOrEqualTo' to ByteAssert, CharAssert, DoubleAssert, FloatAssert, IntAssert, LongAssert and ShortAssert. Fixes 87. Thanks to David DIDER. wanghy, alruiz
add Patch: added methods 'startsWith' and 'endsWith' to StringAssert. Fixes 86. Thanks to David DIDIER. wanghy
add Patch: added class method 'isInstanceOf' to ThrowableAssert. Fixes 84. Thanks to David DIDIER. wanghy
add Patch: added class method 'hasSameContentAs' to FileAssert. Fixes 84. Thanks to David DIDIER. wanghy
add Added method 'size()' to GroupAssert. This method returns an IntAssert. Fixes 35. Thanks to Martin Ankerl. wanghy, alruiz

Release 0.8 - 2008-01-03

Type Changes By
add Added method 'excludes' to StringAssert. Fixes 78. Thanks to David DIDIER. wanghy
add Patch: added class FileAssert. Fixes 79. Thanks to David DIDIER. wanghy
add Patch: added class ThrowableAssert. Fixes 77. Thanks to David DIDIER. alruiz
fix Expected and actual values were in wrong order when creating a ComparisonFailure. Fixes 72. Thanks to Wim Deblauwe. wanghy, alruiz
add Added a generified overload of 'assertThat' to class Assertions. Fixes 47. Thanks to Mark Derricutt. wanghy, alruiz

Release 0.7 - 2007-11-08

Type Changes By
fix Added a delta value for floating point equality in 'DoubleAssert' and 'FloatAssert'. Fixes 38. Thanks to Martin Ankerl. wanghy
add Created Maven-generated site to replace Google Code's wiki pages. alruiz
fix Fixed incorrect test for floating point equality in 'DoubleArrayAssert' and 'FloatArrayAssert'. Fixes 54. alruiz
add Added method 'containsOnly' to all assertion objects that handle arrays or collections. This method verifies that the actual array or collection contains all the given values and only the given values. wanghy

Release 0.6 - 2007-10-15

Type Changes By
add Support for JUnit's ComparisonFailure. Fixes 31. Thanks to Konstantin Scheglov. wanghy
add Added method 'contains' to all assertion objects that handle arrays or collections. This method verifies that the actual array or collection contains the given values. Fixes 37. Thanks to Martin Ankerl. wanghy
add Added method 'excludes' to all assertion objects that handle arrays or collections. This method is the opposite of 'contains'. wanghy
fix All assertion objects override 'equals(Object)', which now throws 'UnsupportedOperationException' to prevent accidental calls. Fixes 39. Thanks to Martin Ankerl. alruiz

Release 0.5-SNAPSHOT - 2007-09-19

Type Changes By
add Introduced method 'describedAs' as a counterpart to 'as'. This issue prevented to use the method 'as' in Groovy ('as' is a keyword in Groovy). Fixes 30. Thanks to Marcos Silva Pereira. wanghy
fix Fixed minor bug in assertion classes for arrays (Object and primitives) where the actual and expected values where in the wrong order in the failure message of 'isEqualTo'. wanghy

Release 0.4 - 2007-09-17

Type Changes By
add Introduced method 'as' to describe the actual value in the assertion. wanghy
fix Added support for extensibility using Conditions. Fixes 29. alruiz