Verify assignments to public variables

Skip to first unread message

Johanna

unread,
May 2, 2011, 9:26:18 AM5/2/11
to mockito-flex
Hi,

I was wondering if there is a way to verify assignments to public
variables. I know that it works for properties...

I guess it is not implemented in Mockito yet, but wouldn't it be
possible to achieve it by marking the generated mock class as bindable
and then track assignments or reads? It is just a very naive thought,
no idea if it could work...

Regards,

Johanna

Kris

unread,
Jun 14, 2011, 3:20:37 AM6/14/11
to mockit...@googlegroups.com
True - this would work but at this point I have no plans in doing so. You can simply mark your property as bindable to achieve the same.

Regards,
Kris
Reply all
Reply to author
Forward
0 new messages