3 ms·
My take... Stubs just return preprogrammed data. Mocks do the above, but can provide their own assertions about call order or number of times called.
by kyrra 6y ago
My take...
Stubs just return preprogrammed data.
Mocks do the above, but can provide their own assertions about call order or number of times called.
- MaxBarraclough 6y agoThat seems consistent with the article. Fowler doesn't explicit state that mocks are a kind of stub, but it seems to follow from his definitions.