|
|
|
|
|
by lmm
3552 days ago
|
|
Mockito makes it a lot worse by not having strict mocks be first-class. EasyMock is much more usable in this regard - you're usually going to have to mock every called method anyway, so it's much better to have the framework tell you when an unmocked method is called than have it silently return null and leave you guessing. |
|
For people looking for an alternative take on why it is good practice to let mocked objects have default stubs for unmocked methods, see this article [1]. This article is referenced in the mocktio documentation.
[0] http://site.mockito.org/mockito/docs/current/org/mockito/Moc...
[1] https://monkeyisland.pl/2008/07/12/should-i-worry-about-the-...