collaborator

Another object or service that the code under test calls to get its work done, such as a payment gateway or a clock.

In more detail

Collaborators are what test doubles replace. Keep the interface to each one small, defined by what your code needs, so doubles stay cheap and honest.

Related terms

Taught in

References