> We use ColdSpring to manage our dependencies, so it is easy to have a > different set of objects injected for a particular test - such as a > SecurityProvider that always says no (or yes !).
Even basic object injection is not that big of an issue. Where I am running into issues are things like Reactor where depending upon what parameter you pass to the createRecord or createGateway method, you will get a different object back with different functionality. How do you mock something like this up? I have been reading about the different mock frameworks that are available for other languages, but I have not seen anything similar for ColdFusion. Is there such or how do people handle creating mock objects for complex dependencies? Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:262760 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

