Issue 147: mxunit:expectedExceptionFails on coldfusion.runtime.MissingArgumentException
Status:  Fixed
Owner:
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