org.cb.util
Class Assert

java.lang.Object
  extended byorg.cb.util.Assert

public final class Assert
extends java.lang.Object

A simple assert tool.

Version:
$Id: Assert.java 130 2004-04-15 05:18:07Z jerome $
Author:
jerome@coffeebreaks.org - last modified by $LastChangedBy: jerome $

Method Summary
static void assertTrue(boolean b, java.lang.String s)
          Assert the expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertTrue

public static void assertTrue(boolean b,
                              java.lang.String s)
Assert the expression.

Parameters:
b - the expression to check
s - the message for the failed assertion if any.
Throws:
java.lang.IllegalStateException - if the assertion failed


Copyright © 2004 CoffeeBreaks. All Rights Reserved.