|
MXUnit 2.1.3 (Generated: 09/27/2012) | ||||
FRAMES |
WEB-INF.cftags.componentmxunit.framework.Assert
mxunit.framework.MXUnitAssertionExtensions
public class MXUnitAssertionExtensions
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 |
---|
public boolean assertEqualsWithTolerance(any expected, any actual, numeric tolerance, [string message=''])
expected
- The expected object to compare.actual
- The actual object to compare.tolerance
- message
- Optional custom message to display if comparison fails.public boolean assertIsArray(any a, [string message='The test result is not a valid ColdFusion ARRAY.'])
a
message
public boolean assertIsDefined(any o, [string message='[runtime expression]'])
o
message
public boolean assertIsEmpty(String o, [string message='[runtime expression]'])
o
message
public boolean assertIsEmptyArray(any a, [string message='[runtime expression]'])
a
message
public boolean assertIsEmptyQuery(any q, [string message='[runtime expression]'])
q
message
public boolean assertIsEmptyStruct(any struct, [string message='[runtime expression]'])
struct
message
public boolean assertIsExactTypeOf(any o, string type)
o
type
public boolean assertIsQuery(any q, [string message='The test result is not a valid ColdFusion QUERY.'])
q
message
public boolean assertIsStruct(any struct, [string message='The test result is not a valid ColdFusion STRUCTURE.'])
struct
message
public boolean assertIsTypeOf(any o, string type)
o
type
public boolean assertIsXMLDoc(any xml, [string message='The test result is not a valid ColdFusion XML DOC object.'])
xml
message
|
MXUnit 2.1.3 (Generated: 09/27/2012) | ||||
FRAMES |