Hi,
I see what you mean. Mockito takes the generic approach and eq() just
does the object.equals(otherObject).
Have a look at AdditionalMatchers - it contains aryEq() matchers.
>So my question is : is it possible to override the default behavior of eq() for byte[]?
>And also, could you add this feature in a future release for any array of primitives?
File an enhancement report for it in the issue tracker and we will
think about it.
Cheers,
Szczepan Faber