|
|
|
|
|
by rgoulter
165 days ago
|
|
> there is a massive difference between writing mocks and using a mocking library like Mockito How to reconcile the differences in this discussion? The comment at the root of the thread said "my experience with mocks is they were over-specified and lead to fragile services, even for fresh codebases. Using a 'fake' version of the service is better". The reply then said "if mocking doesn't provide a fake, it's not 'mocking'". I'm wary of blanket sentiments like "if you ended up with a bad result, you weren't mocking". -- Is it the case that libraries like mockito are mostly used badly, but that correct use of them provides a good way of implementing robust 'fake services'? |
|