mockobject

noun
UK /ˈmɒkˌɒbdʒɛkt/
US /ˈmɑːkˌɑːbdʒɛkt/

A pretend object used in testing to stand in for a real one.

The programmer used a mockobject to test the login code without a real database.


OTHER MEANINGS

2. In software testing, a simulated object that records calls and verifies interactions.

The mockobject confirmed the service was called exactly once.

3. Any imitation object used for practice or demonstration.

The trainees practiced on a mockobject before handling the real device.

4. A placeholder in a design or prototype that represents a future component.

The mockobject in the prototype showed where the sensor would go.