adapter

A small piece of your own code that sits in front of someone else's library or service and exposes only what you need.

In more detail

Double your adapter, not the third-party library, because the library's behaviour is not yours to predict. Test the adapter against the real thing occasionally, and let every other test use a double of it.

Related terms

Taught in

References