|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkiwi.util.Assert
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);
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 |
private Assert()
Method Detail |
public static void assert(boolean expr) throws AssertionException
expr
- The value of the expression to test.
AssertionException
- If the assertion fails.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |