EasyConceptTesting and quality
What is the difference between a mock and a stub?
What a good answer covers
A stub returns canned answers to calls, while a mock also verifies how it was called. Overusing mocks couples tests to implementation details.
EasyConceptTesting and quality
What a good answer covers
A stub returns canned answers to calls, while a mock also verifies how it was called. Overusing mocks couples tests to implementation details.