Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



The 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: