Skip to content

Instantly share code, notes, and snippets.

@virtix
Created July 29, 2008 19:06
Show Gist options
  • Save virtix/3151 to your computer and use it in GitHub Desktop.
Save virtix/3151 to your computer and use it in GitHub Desktop.
<cfcomponent extends="mxunit.framework.TestCase">
<cffunction name="setUp" returntype="void" access="public" hint="put things here that you want to run before each test">
</cffunction>
<cffunction name="tearDown" returntype="void" access="public" hint="put things here that you want to run after each test">
</cffunction>
<cffunction name="testXXX" returntype="void" access="public">
<cfset fail("this test not yet implemented")>
</cffunction>
<cffunction name="testCauseAFailure" returntype="void" hint="tests error path">
<cftry>
<!--- do something here to cause an error --->
<cfset fail("Error path test... should not have gotten here")>
<cfcatch type="mxunit.exception.AssertionFailedError">
<cfrethrow>
</cfcatch>
<cfcatch type="any"></cfcatch>
</cftry>
</cffunction>
</cfcomponent>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment