3 ms·
I actually liked mockito, when I was doing Java development a couple of years ago. That just looks like a horrible test, I tend to argue that when you have to
by mudetroit 13y ago
I actually liked mockito, when I was doing Java development a couple of years ago.
That just looks like a horrible test, I tend to argue that when you have to resort to using a verify on any mock then you are looking at something problematic.
- revscat 13y agoThe same argument could be made if you replaced the call to verify(...) with a when(...). The point is that mocking frameworks tightly couple the test code to the current implementation. That has downsides.