On Fri, Sep 11, 2009 at 8:28 PM, Mark Mandel <[email protected]> wrote:
> When you say this:
> The application puts the transfer object into the application scope.
> The unit tests are in a subfolder with a separate Application.cfc (so
> it shouldn't be sharing the Application scope). The transfer object
> for the MXUnit tests are in the local scope.  If I try to run a unit
> test and the transfer object hadn't been "initialized" by the main
> application, I get an error that it can't find the Decorator as
> defined in the XML file.
>
> What do you mean by 'transfer object' - you mean an object generated by
> Transfer? or the TransferFactory? or what?
>
> Mark

This is what's in my onApplicationStart:
<!--- Transfer initialization --->
<cfset application.myTransferFactory =
createObject("component","transfer.TransferFactory").init("/config/datasources/deployment.xml.cfm","/config/transfer/deployment.xml.cfm","/config/definitions")
/>
<cfset application.myTransfer = application.myTransferFactory.getTransfer() />

That could be part of the problem, but the unit tests all have their
own Application.cfc (which does nothing, since unit tests shouldn't be
relying on "application" code, right?)

Scott
-- 
-----------------------------------------
Scott Brady

--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to