>To test creating the enrollmentRecord you could create a mock of >Reactor. You don't have to mock out all of Reactor. If the only >function you're using is createRecord() just mock that and have it >return a MockEnrollmentRecord.
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. -- Jeff ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:262795 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

