On 12/4/06, Jeff Chastain <[EMAIL PROTECTED]> wrote:

> The question though is how to mock out the createRecord function
> of Reactor.  Do you have different mock Reactor objects for each
> function as depending upon the argument passed to the createRecord
> function, you will receive a different type of record object back and you
> have to have the right type of object returned or else the follow on
> method calls won't work.

I would have a different MockReactorFactory for each test. It's not
that hard in other languages, where you can defined the mock inline
(see Java annoymous inner classes). In CF it's waaaayyyyyy too much
work.

That's part of why I gave up on unit testing in CF a long time ago. :(

Patrick


-- 
Patrick McElhaney
704.560.9117

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262799
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to