My favorites | Sign in
Project Home Downloads Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 147: mxunit:expectedExceptionFails on coldfusion.runtime.MissingArgumentException
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  virtix
Closed:  May 2009


 
Project Member Reported by virtix, May 18, 2009
What steps will reproduce the problem?

<cffunction name="testGetClientInformationNoClient_ID"
mxunit:expectedException="coldfusion.runtime.MissingArgumentException">
   <cfset var strReturn = "" />
   <!--- missing required parameter: no Client_ID --->
   <cfset stReturn = variables.getClientInformation() />
</cffunction> 

<cffunction name="getClientInformation" access="private">
 <cfargument name="foo" required="true" />
</cffunction>


---------------------------------

Appears that cfcatch.type can be Application/Expression, etc., which is
misleading. A better way to sniff the exception type is 
getMetaData(caughtException).getName()

---------------------------------

Fix coming shortly.

---------------------------------

bill
May 18, 2009
Project Member #1 virtix
put fix in repo. needed to look at BOTH cfcatch.type and
getMetaData(cfcatch).getName(). Looks like developers may expect either one.

Status: Fixed

Powered by Google Project Hosting