Quantcast
Viewing latest article 3
Browse Latest Browse All 43

Answer by mostafa kazemi for What's the difference between a mock & stub?

Mocks: help to emulate and examine outcoming interactions. These interactionsare calls the SUT makes to its dependencies to change their state.

Stubs: help to emulate incoming interactions. These interactions are calls theSUT makes to its dependencies to get input data.

Image may be NSFW.
Clik here to view.
enter image description here

source : Unit Testing Principles, Practices, and Patterns - Manning


Viewing latest article 3
Browse Latest Browse All 43

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>