MXUnit 2.1.3 (Generated: 09/27/2012)

mxunit.framework
Class MXUnitAssertionExtensions

WEB-INF.cftags.component
        extended by mxunit.framework.Assert
            extended by mxunit.framework.MXUnitAssertionExtensions

public class MXUnitAssertionExtensions
extends Assert

Extends core mxunit assertions.


Method Summary
 boolean assertEqualsWithTolerance(any expected, any actual, numeric tolerance, [string message=''])
          returns true of actual and expected are within a certain tolerance(epsilon) of each other
 boolean assertIsArray(any a, [string message='The test result is not a valid ColdFusion ARRAY.'])
 boolean assertIsDefined(any o, [string message='[runtime expression]'])
 boolean assertIsEmpty(String o, [string message='[runtime expression]'])
 boolean assertIsEmptyArray(any a, [string message='[runtime expression]'])
 boolean assertIsEmptyQuery(any q, [string message='[runtime expression]'])
 boolean assertIsEmptyStruct(any struct, [string message='[runtime expression]'])
 boolean assertIsExactTypeOf(any o, string type)
          returns true if 'type' argument matches exactly the object's type
 boolean assertIsQuery(any q, [string message='The test result is not a valid ColdFusion QUERY.'])
 boolean assertIsStruct(any struct, [string message='The test result is not a valid ColdFusion STRUCTURE.'])
 boolean assertIsTypeOf(any o, string type)
          returns true if 'type' argument matches the object's type or if the object is in the inheritance tree of the type
 boolean assertIsXMLDoc(any xml, [string message='The test result is not a valid ColdFusion XML DOC object.'])
 
Methods inherited from class mxunit.framework.Assert
mxunit.framework.MXUnitAssertionExtensions
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

assertEqualsWithTolerance

public boolean assertEqualsWithTolerance(any expected, any actual, numeric tolerance, [string message=''])
returns true of actual and expected are within a certain tolerance(epsilon) of each other. good for comparing floating point values.

Parameters:
expected - The expected object to compare.
actual - The actual object to compare.
tolerance -
message - Optional custom message to display if comparison fails.

assertIsArray

public boolean assertIsArray(any a, [string message='The test result is not a valid ColdFusion ARRAY.'])

Parameters:
a
message

assertIsDefined

public boolean assertIsDefined(any o, [string message='[runtime expression]'])

Parameters:
o
message

assertIsEmpty

public boolean assertIsEmpty(String o, [string message='[runtime expression]'])

Parameters:
o
message

assertIsEmptyArray

public boolean assertIsEmptyArray(any a, [string message='[runtime expression]'])

Parameters:
a
message

assertIsEmptyQuery

public boolean assertIsEmptyQuery(any q, [string message='[runtime expression]'])

Parameters:
q
message

assertIsEmptyStruct

public boolean assertIsEmptyStruct(any struct, [string message='[runtime expression]'])

Parameters:
struct
message

assertIsExactTypeOf

public boolean assertIsExactTypeOf(any o, string type)
returns true if 'type' argument matches exactly the object's type. inheritance tree is not considered

Parameters:
o
type

assertIsQuery

public boolean assertIsQuery(any q, [string message='The test result is not a valid ColdFusion QUERY.'])

Parameters:
q
message

assertIsStruct

public boolean assertIsStruct(any struct, [string message='The test result is not a valid ColdFusion STRUCTURE.'])

Parameters:
struct
message

assertIsTypeOf

public boolean assertIsTypeOf(any o, string type)
returns true if 'type' argument matches the object's type or if the object is in the inheritance tree of the type.

Parameters:
o
type

assertIsXMLDoc

public boolean assertIsXMLDoc(any xml, [string message='The test result is not a valid ColdFusion XML DOC object.'])

Parameters:
xml
message

MXUnit 2.1.3 (Generated: 09/27/2012)