kiwi.util
Class Assert

java.lang.Object
  extended bykiwi.util.Assert

public class Assert
extends java.lang.Object

Assertion support. An assertion is basically a test of a boolean expression. If the expression evaluates to false, the assertion fails, and a runtime exception is thrown. An example of an assertion is:

 Assert.assert(window != null);
 window.setVisible(true);
 

Author:
Mark Lindner, PING Software Group

Constructor Summary
private Assert()
           
 
Method Summary
static void assert(boolean expr)
          Test an assertion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assert

private Assert()
Method Detail

assert

public static void assert(boolean expr)
                   throws AssertionException
Test an assertion.

Parameters:
expr - The value of the expression to test.
Throws:
AssertionException - If the assertion fails.