JsUnit 1.3
Project Developer Home doxygen

ComparisonFailure Class Reference

Inheritance diagram for ComparisonFailure:

Inheritance graph
[legend]
Collaboration diagram for ComparisonFailure:

Collaboration graph
[legend]
List of all members.

Detailed Description

Thrown when a test assert comparing equal strings fail.


Public Member Functions

void ComparisonFailure (String msg, String expected, String actual, CallStack stack)
 Constructor.

Public Attributes

int mExpected
int mActual

Static Public Attributes

static String name
 The name of the ComparisonFailure class as String.


Constructor & Destructor Documentation

void ComparisonFailure::ComparisonFailure ( String  msg,
String  expected,
String  actual,
CallStack  stack 
)

Constructor.

An AssertionFailedMessage needs a message and a call stack for construction.

Parameters:
msg Failure message (optional).
expected The expected string value.
actual The actual string value.
stack The call stack of the assertion.


Member Data Documentation

int ComparisonFailure::mExpected

int ComparisonFailure::mActual

String ComparisonFailure::name [static]

The name of the ComparisonFailure class as String.

Reimplemented from AssertionFailedError.


The documentation for this class was generated from the following file:
JsUnit © 1999, 2000, 2001, 2002, 2003, 2006, 2007 by Jörg Schaible
Generated on Fri Oct 19 23:10:51 2007 for JsUnit by doxygen 1.5.2