> Am I doing something wrong?
Nope. It's a long story and I have to go to sleep so let me share with
you a short story :)
Consider it as a mocking syntax trade-off and for that case please use:
willReturn(xxx).given(contractDAO).find....
It should be also in the docs if you read through willReturn()...
doReturn()... javadocs or related content.
Cheers!
Szczepan Faber
> --
>
> You received this message because you are subscribed to the Google Groups
> "mockito" group.
> To post to this group, send email to
moc...@googlegroups.com.
> To unsubscribe from this group, send email to
>
mockito+u...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/mockito?hl=en.
>