argumentCaptor

10 views
Skip to first unread message

Nathan

unread,
Jul 28, 2010, 6:20:13 PM7/28/10
to mockito-flex, kelly...@sabre.com
Is there a way to capture the arguments passed to a method in flex
mockito? I tried playing with the ReturnArgs concept and did not have
much luck.

Kris

unread,
Jul 31, 2010, 7:13:39 AM7/31/10
to mockit...@googlegroups.com
Hi,

Do you want to capture arguments when stubbing or when verifying?

Regards,
Kris


--
You received this message because you are subscribed to the Google Groups "mockito-flex" group.
To post to this group, send email to mockit...@googlegroups.com.
To unsubscribe from this group, send email to mockito-flex...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mockito-flex?hl=en.


Nathan Sevugan

unread,
Jul 31, 2010, 7:08:15 PM7/31/10
to mockit...@googlegroups.com
Do you work for Sabre? While verifying, I wrote a name matcher implementation to get around it. It seems to work, is there a better way to do it?
 
 
Thanks
Nathan

Kris

unread,
Aug 1, 2010, 4:07:48 PM8/1/10
to mockit...@googlegroups.com
I think this is best you can do right now. There is a feature request open to add arguments capturing while verifying.

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