anyX() matchers work exactly the same as in EasyMock. I considered
making anyX() also lenient about nulls (and even suggested that to EM
guys) but I got convinced to keep it (as you say) semantically
correct.
I'm changing my mind, though. I agree that anyX() communicates "I
don't care about it". If I care about having the argument being **not
null** I should write isNotNull() which is explicit! That's why I'd
like to change the way anyX() matchers work - to allow nulls as a
valid **any** things. Any comments from other users? Also, I will add
isNotNull() matcher to complete the implementation change.
Thanks for pointing that out.
Cheers,
Szczepan Faber