Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: FEST-Assert 1.1
-
Fix Version/s: FEST-Assert 1.1
-
Component/s: Assert
-
Labels:None
-
Number of attachments :
Description
Hi,
I am using version 1.0a1 of the FEST-Assert module.
It would be useful if ObjectArrayAssert would implement a "deep" version of the comparison methods, like isEqualTo(Object[]). By deep I mean that if the elements of the test array are arrays themselves, then isEqualTo should "recursively" call (the call wouldn't really be recursive) isEqualTo on all elements of the array.
Currently isEqualTo uses Arrays#equals(Object[], Object[]), which calls #equals for each element of the arguments. The equals method for arrays tests for identity, that's why the Array#equals methods exist in the first place.
Thanks,
Csabi
Original report: Issue 182 (Google Code)