Re:Why Most Unit Testing is Waste [pdf]
by mudetroit on Thursday March 06, 2014 @11:55AM
(#7354893)
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.
Re:Why Most Unit Testing is Waste [pdf]
by revscat on Thursday March 06, 2014 @12:12PM
(#7355022)
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.
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.