Created
July 29, 2008 19:06
-
-
Save virtix/3151 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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