| Issue 147: | mxunit:expectedExceptionFails on coldfusion.runtime.MissingArgumentException | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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
Status:
Fixed
|