ColdFusion On Wheels 1.1 Beta 1

wheels
Class Test

WEB-INF.cftags.component
        extended by wheels.Test

public class Test
extends WEB-INF.cftags.component

Method Summary
 any $WheelsRunner([struct options='[runtime expression]'])
 string $cleanTestCase(string str)
          removes the base test directory from the test name to make them prettier and more readable
 string $cleanTestName(string str)
          cleans up the test name so they are more readable
 string $cleanTestPath(string str)
          cleans up the test name so they are more readable
 boolean $isValidTest(string component, [string shouldExtend='Test'])
 void $resetTestResults([string resultKey='test'])
 any $results([string resultKey='test'])
 boolean $runTest([string resultKey='test'], [string testname=''])
 boolean $runTestPackage(string testPackage, [string resultKey='test'])
 void assert(string expression)
          evaluates an expression
 Any debug(string expression, [boolean display='true'])
          used to examine an expression
 void fail([string message=''])
          will throw an exception resulting in a test failure along with an option message
 string raised(string expression)
          catches an raised error and returns the error type
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

$WheelsRunner

public any $WheelsRunner([struct options='[runtime expression]'])

Parameters:
options

$cleanTestCase

public string $cleanTestCase(string str)
removes the base test directory from the test name to make them prettier and more readable

Parameters:
str - test case name to clean up

$cleanTestName

public string $cleanTestName(string str)
cleans up the test name so they are more readable

Parameters:
str - test name to clean up

$cleanTestPath

public string $cleanTestPath(string str)
cleans up the test name so they are more readable

Parameters:
str - test name to clean up

$isValidTest

public boolean $isValidTest(string component, [string shouldExtend='Test'])

Parameters:
component - path to the component you want to check as a valid test
shouldExtend - if the component should extend a base component to be a valid test

$resetTestResults

public void $resetTestResults([string resultKey='test'])

Parameters:
resultKey

$results

public any $results([string resultKey='test'])

Parameters:
resultKey

$runTest

public boolean $runTest([string resultKey='test'], [string testname=''])

Parameters:
resultKey
testname

$runTestPackage

public boolean $runTestPackage(string testPackage, [string resultKey='test'])

Parameters:
testPackage
resultKey

assert

public void assert(string expression)
evaluates an expression

Parameters:
expression

debug

public Any debug(string expression, [boolean display='true'])
used to examine an expression. any overloaded arguments get passed to cfdump's attributeCollection

Parameters:
expression - the expression to examine.
display - whether to display the debug call. false returns without outputting anything into the buffer. good when you want to leave the debug command in the test for later purposes, but don't want it to display

fail

public void fail([string message=''])
will throw an exception resulting in a test failure along with an option message.

Parameters:
message

raised

public string raised(string expression)
catches an raised error and returns the error type. great if you want to test that a certain exception will be raised.

Parameters:
expression

ColdFusion On Wheels 1.1 Beta 1