Quantcast
Channel: What's the difference between a mock & stub? - Stack Overflow
Viewing all articles
Browse latest Browse all 43

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

$
0
0

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.

enter image description here

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


Viewing all articles
Browse latest Browse all 43

Trending Articles



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