Menu

#1 Testcase fails / exception

open
cfcUnit (5)
5
2007-04-05
2007-04-05
Anonymous
No
<cffunction name="testConstructor" returntype="void" access="public" output="false">
    <cfset var testString = '\{"serviceType":"JSON-RPC","methods":\[\{"name":"Testing123"\}\],"SMDVersion":.1,"objectName":"coldfusion-JSON.Class","serviceUrl":"components/Json/CFJsonService.cfc?method=runservice"\}' />
    <cfset var CFJsonService = CreateObject\('component','components.json.CFJsonService'\) />
    <cfset var Filename = 'CFJsonServiceConfig.xml' />
    <cfset assertEqualsString\(testString, CFJsonService.Init\(Filename\)\) />
</cffunction>

This will fail throw an exception on the assertString...

Discussion


Log in to post a comment.