JsUnit
Project Developer Home doxygen

Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ComparisonFailure Class Reference

Thrown when a test assert comparing equal strings fail. More...

Inheritance diagram for ComparisonFailure:
Inheritance graph
Collaboration diagram for ComparisonFailure:
Collaboration graph

Public Member Functions

void ComparisonFailure (String msg, String expected, String actual, CallStack stack)
 Constructor. More...
 
- Public Member Functions inherited from AssertionFailedError
void AssertionFailedError (String msg, CallStack stack)
 Constructor. More...
 
- Public Member Functions inherited from JsUnitError
void JsUnitError (String msg)
 Constructor. More...
 
String toString ()
 String representation of the error. More...
 
- Public Member Functions inherited from Error
void Error (String msg)
 Constructor. More...
 
String toString ()
 String representation of the error. More...
 

Public Attributes

int mActual
 
int mExpected
 
- Public Attributes inherited from AssertionFailedError
int mCallStack
 The call stack for the message. More...
 
- Public Attributes inherited from JsUnitError
int message
 
- Public Attributes inherited from Error
String message
 The error message. More...
 

Static Public Attributes

static String name
 The name of the ComparisonFailure class as String. More...
 
- Static Public Attributes inherited from AssertionFailedError
static String name
 The name of the AssertionFailedError class as String. More...
 
- Static Public Attributes inherited from JsUnitError
static String name
 The name of the Error class as String. More...
 
- Static Public Attributes inherited from Error
static int testable
 
static String name
 The name of the Error class as String. More...
 

Detailed Description

Thrown when a test assert comparing equal strings fail.

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
msgFailure message (optional).
expectedThe expected string value.
actualThe actual string value.
stackThe call stack of the assertion.

Member Data Documentation

int ComparisonFailure::mActual
int ComparisonFailure::mExpected
String ComparisonFailure::name
static

The name of the ComparisonFailure class as String.


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 Wed Apr 15 2015 02:33:06 for JsUnit by doxygen 1.8.5