Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

AssertFailure.java File Reference


Detailed Description

Defines burst.AssertFailure, a subclass of burst.BurstError used for bu_assertTrue and similar.

Author:
Copyright 2003 Mark D. Anderson (mda@discerning.com)

Licensed under the Academic Free License 1.2 http://www.opensource.org/licenses/academic.php


Functions

void bu_assertTrue (String msg, Object cond)
 Throws if the condition is not true.

void bu_assertTrue (Object cond)
 single-argument variant.

void bu_assertFalse (String msg, Object cond)
 Throws if the condition is true.

void bu_assertFalse (Object cond)
 single-argument variant.

void bu_assertEquals (String msg, Object expected, Object actual)
 Throws if the expected and actual are not ==.

void bu_assertEquals (Object expected, Object actual)
 two-argument variant.

void bu_assertState (String statename, String expected, String actual)
 Throws if the expected and actual state values are not ===.


Function Documentation

void bu_assertEquals String  msg,
Object  expected,
Object  actual
 

Throws if the expected and actual are not ==.

May be called either as (expected, actual) or (msg, expected, actual).

Parameters:
msg optional String to put as part of the message.
expected The expected value
actual The actual value

void bu_assertFalse String  msg,
Object  cond
 

Throws if the condition is true.

May be called either as (cond) or (msg, cond).

Parameters:
msg optional String to put as part of the message.
cond String to eval and test or Object to test.

void bu_assertState String  statename,
String  expected,
String  actual
 

Throws if the expected and actual state values are not ===.

Parameters:
statename The name of the state, used in error message.
expected The expected state value
actual The actual state value

void bu_assertTrue String  msg,
Object  cond
 

Throws if the condition is not true.

May be called either as (cond) or (msg, cond).

Parameters:
msg optional String to put as part of the message.
cond String to eval and test or Object to test.


Generated on Tue Nov 30 04:03:08 2004 for BurstProject by doxygen 1.3.4