0 votes
What is the difference between Mock & Stub?
in Service Discovery by

1 Answer

0 votes

A Mock is generally a dummy object where certain features are set into it initially. Its behavior mainly depends on these features, which are then tested. 

A Stub is an object that helps in running the test. It functions in a fixed manner under certain conditions. This hard-coded behavior helps the stub to run the test.

by
...