ssacher-tgm / mockito

Automatically exported from code.google.com/p/mockito
0 stars 0 forks source link

Inspection of mock objects #178

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I think it would be a good idea to add inspection of mock objects for
debugging purposes.

The idea is to have a method like:
Collection<MethodCall> calls = Mockito.getInvocations(mock) which can then
be inspected by your code or in your debugger.

This could be used for more advanced verifications, but the biggest
advantage would be for debugging.

Original issue reported on code.google.com by kristofer.karlsson@gmail.com on 11 Mar 2010 at 2:12

GoogleCodeExporter commented 8 years ago
Yeah, I think it is a good idea.

Do you want to contribute? :)

Original comment by szcze...@gmail.com on 11 Mar 2010 at 11:19

GoogleCodeExporter commented 8 years ago
Possibly, I think i can give it a try some time in the near future.

Original comment by kristofer.karlsson@gmail.com on 12 Mar 2010 at 6:53

GoogleCodeExporter commented 8 years ago
Future development on this matter might be interested by issue 313.

Original comment by brice.du...@gmail.com on 5 Mar 2012 at 4:15

GoogleCodeExporter commented 8 years ago
After looking at the thread in issue 313, it looks like a getInvocations() 
method didn't get implemented. This is slightly old now, but I found myself 
thinking this would be useful and would like to take a shot at implementing it. 
Is it still wanted?

Original comment by jeremy.r...@gmail.com on 24 Apr 2013 at 4:10

GoogleCodeExporter commented 8 years ago
https://github.com/mockito/mockito/pull/10 is merged, thanks a lot Jeremy.

Sorry for the late merge ;)

Original comment by brice.du...@gmail.com on 13 Nov 2013 at 9:53

GoogleCodeExporter commented 8 years ago

Original comment by szcze...@gmail.com on 16 Aug 2014 at 2:43

GoogleCodeExporter commented 8 years ago

Original comment by szcze...@gmail.com on 24 Aug 2014 at 3:14

GoogleCodeExporter commented 8 years ago

Original comment by szcze...@gmail.com on 24 Aug 2014 at 3:50