|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kiwi.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 |
|
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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |