Counting On Spies

Definition:

  • occurs when injecting a proxy ob- ject (spy) in place of a dependency (or collaborator), and spying on how the consuming class calls it.

References:

Quality attributes

  • - Code Example

  • - Cause and Effect

  • - Frequency

  • - Refactoring