Before I go off and reinvent the wheel, I was wondering if anyone has
done anything along the lines of mocking up the Client class to make
unit testing easier.

One way to do this is to subclass Client and then override handle(), but
then I'll have to create some sort of Client factory for constructing
Client instances so that the mock gets used during testing and the real
one gets used in production.

Is there something underneath Client whereby I can intercept outgoing
requests and insert my own respone without having to do anything special
in the production code?

--Chuck

------------------------------------
Chuck Hinson
Gestalt LLC
phone: 610.994.2833
IM: chucking24 (Yahoo)
 

Reply via email to