Jump to content

mock object

From Wiktionary, the free dictionary

English

[edit]
English Wikipedia has an article on:
Wikipedia

Noun

[edit]

mock object (plural mock objects)

  1. (object-oriented programming) An object that mimics the behavior of a real object in a controlled way, often used as part of unit testing.
    Synonym: mock
    Hypernyms: fake, test double
    Coordinate term: stub
    • 2020, Cătălin Tudose, JUnit in Action, 3rd edition, Simon and Schuster, →ISBN, page 139:
      Mock objects (mocks, for short) are perfectly suited for testing a portion of code logic in isolation from the rest of the code.

Translations

[edit]