---
title: "When To Use Mock Objects?"
author: "温柔一刀"
date: "2008-06-10T10:18:18Z"
tags: []
slug: "when-to-use-mock-objects"
draft: false
lastmod: "2008-06-10T10:18:18Z"
id: 201677
url: "https://zhupan.iteye.com/blog/201677"
---

> - The real object has nondeterministic behavior
> - The real object is difficult to setup
> - The real object has behavior that is hard to trigger
> - The real object is slow
> - The real object is a user interface
> - The real object uses a call back
> - The real object does not yet exist