Show
Ignore:
Timestamp:
06/07/07 06:13:54 (6 years ago)
Author:
lmajano
Message:

Ticket #182
Unit Testing Controller and Test Suites

Location:
coldbox/trunk/ApplicationTemplate/handlers/tests/cases
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • coldbox/trunk/ApplicationTemplate/handlers/tests/cases/ehGeneralTest.cfc

    r696 r730  
    2121                </cfscript> 
    2222        </cffunction> 
    23  
     23         
     24        <cffunction name="testdoSomething" access="public" returntype="void" output="false"> 
     25                <cfscript> 
     26                var event = ""; 
     27                 
     28                //Place any variables on the form or URL scope to test the handler. 
     29                //FORM.name = "luis" 
     30                event = execute("ehGeneral.doSomething"); 
     31                         
     32                //Do your asserts below for setnextevent you can test for a setnextevent boolean flag 
     33                assertEqualsBoolean(true, event.getValue("setnextevent","false"), "Set Next Event flag not test by test controller"); 
     34                         
     35                </cfscript> 
     36        </cffunction> 
     37         
    2438</cfcomponent>