I am sorry, I figured out what it was. It was not actually that component it
was another cfc that  I was setting into the variables scope and thats why
it was throwing me off.

FYI - ColdFusion variables are not case sensitive so "setup" and "setUp" are
the same.

On 12/12/06, Paul Kenney <[EMAIL PROTECTED]> wrote:
>
> Change "setup" to "setUp"
>
>
> On 12/12/06, Dan Vega <[EMAIL PROTECTED]> wrote:
> >
> > I am running some test cases using cfcUnit, My question is when i ran
> this
> > test the first time i forgot to pass the datasource to my init method. I
> > have since
> > added it but it still does not see it in the setup? Is this cached, am i
> > missing something?
> >
> > <cfcomponent namespace="StudentInterviewTest" extends="
> > org.cfcunit.framework.TestCase">
> >
> >     <cfset variables.studentInterview = "">
> >
> >     <cffunction name="setup" access="private" returntype="void">
> >         <cfset variables.studentInterview = createObject("component",
> > "StudentInterview").init("mydsn")>
> >     </cffunction>
> >
> >     <cffunction name="testSendInterviewEmail" access="public"
> > returntype="void">
> >         <cfset studentInterview.sendInterviewEmail("arg1","arg2")>
> >     </cffunction>
> >
> > </cfcomponent>
> >
> >
> > --
> > Thank You
> > Dan Vega
> > [EMAIL PROTECTED]
> > http://www.danvega.org
> >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:263853
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
  • Re: cfcUnit Dan Vega

Reply via email to