common
Class Assert

java.lang.Object
  extended bycommon.Assert

public final class Assert
extends java.lang.Object

Simple assertion mechanism for use during development


Constructor Summary
Assert()
           
 
Method Summary
static void verify(boolean condition)
          Throws an AssertionFailed exception if the specified condition is false
static void verify(boolean condition, java.lang.String message)
          If the condition evaluates to false, an AssertionFailed is thrown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assert

public Assert()
Method Detail

verify

public static void verify(boolean condition)
Throws an AssertionFailed exception if the specified condition is false

Parameters:
condition - The assertion condition which must be true

verify

public static void verify(boolean condition,
                          java.lang.String message)
If the condition evaluates to false, an AssertionFailed is thrown

Parameters:
message - A message thrown with the failed assertion
condition - If this evaluates to false, an AssertionFailed is thrown