ssacher-tgm / mockito

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

When using a mock method call in verify() you always get a green bar. #186

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create mock a and b from classes A and B.
2. Call  verify(a, times(100)).methodToVerify(b.value());

What is the expected output? What do you see instead?
I expect "Actually, there were zero interactions with this mock."
I get a green bar.

What version of the product are you using? On what operating system?
1.8.4
Error due to fix of issue 138.

Please provide any additional information below.
I have added a test class which demonstrates the behaviour.

Original issue reported on code.google.com by soren.th...@gmail.com on 4 May 2010 at 2:53

Attachments:

GoogleCodeExporter commented 8 years ago
Man, you're good, you've even discovered when I introduced this bug. 

Thanks for reporting. It is now fixed!

Original comment by szcze...@gmail.com on 11 May 2010 at 7:06