Mock

A stand-in object that answers a call with a written value, so a test measures one piece without the real thing behind it.

Back to the glossary