Apologies if this comes through twice - I sent it a couple of hours ago and
have not seen it on the list yet, so I am sending it via the web site.
I am needing a bit of help with CFUnit from those more experienced. I have a
cfc function that returns a boolean. Looking through the CFUnit code, I found
the 'assertEqualsBoolean' which I thought might be an equality test for 2
boolean values. I have checked that my function is in fact returning true
(actually 'YES'), but I am getting an error on my assertion from CFUnit.
My test case function is as follows:
<cffunction name="testIsNullID" returntype="void" access="public">
<!--- isNullID --->
<cfset result = variables.property.isNullID() />
<!--- check result --->
<cfinvoke method="assertEqualsBoolean">
<cfinvokeargument name="expected" value="true">
<cfinvokeargument name="actual" value="#result#">
</cfinvoke>
</cffunction>
The error message I am getting from CFUnit, is as follows:
testIsNullID(test.propertyTest): Entity has incorrect type for being called
as a function.: The symbol you have provided assertEqualsBoolean is not the
name of a function.
Any suggestions as to what I might be doing wrong here?
Thanks
-- Jeff
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225259
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54