kiwi.util
Class Assert
java.lang.Object
|
+--kiwi.util.Assert
- public class Assert
- extends 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);
- Version:
- 1.0 (10/98)
- Author:
- Mark Lindner, PING Software Group
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 |
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.