3 ms·
I don't think he really sells the point to me. You can use any tool incorrectly. An application with poor composition conmbined with mocks without verification
by exabrial 6y ago
I don't think he really sells the point to me. You can use any tool incorrectly. An application with poor composition conmbined with mocks without verifications leads you down the path he describes. What we should do is only use "mocks to create fakes", which if you read the manuals on Mockito, is what they're pushing you towards anyway.
So in conclusion I would say that a lot of people use mocking frameworks incorrectly and the author is hitting home on that.
- srtjstjsj 6y agoYou only use mocks to create fakes if you are stuck with mocks and you are learning along with the Mockito authors that fakes are better.