Re: Mock objects and asynchronus events

From: Uncle Bob (Robert C. Martin) (u.n.c.l.e.b.o.b_at_objectmentor.com)
Date: 10/16/03


Date: Thu, 16 Oct 2003 14:49:12 -0500

zix6@yahoo.com (Zix) might (or might not) have written this on (or
about) 14 Oct 2003 07:59:01 -0700, :

>I'm all for using mock objects for test driven development. Yet how
>can I use a mock object for an asynchronus event source?

Perhaps I don't understand the question, but it seems to me you could
use a random number generator and a real-time clock.

Robert C. Martin | "Uncle Bob"
Object Mentor Inc.| unclebob @ objectmentor . com
PO Box 5757 | Tel: (800) 338-6716
565 Lakeview Pkwy | Fax: (847) 573-1658 | www.objectmentor.com
Suite 135 | | www.XProgramming.com
Vernon Hills, IL, | Training and Mentoring | www.junit.org
60061 | OO, XP, Java, C++, Python | http://fitnesse.org