mock object

noun

mock object

noun
1

An object that mimics the behavior of a real object in a controlled way, often used as part of unit testing.

Object-oriented programming

  • Mock objects (mocks, for short) are perfectly suited for testing a portion of code logic in isolation from the rest of the code.2020, Cătălin Tudose, JUnit in Action, 3rd edition, Simon and Schuster, →ISBN, page 139:

Entry derived from the Wiktionary, under licence CC BY-SA 4.0 — list of authors.