Contents | Package | Class | Tree | Deprecated | Index | Help | |||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----jsync.Assert
assert()
macro. As far as Java compiler doesn't provide information about compiled
file and line number, place of assertion failure can be located only
by analyzing stack trace of thrown AssertionFailed exception.
Constructor Summary | |
Assert()
|
Method Summary | |
static void | that(boolean cond)
AssertionFailed
exception if it is not true.
|
static void | that(java.lang.String description,
boolean cond)
AssertionFailed
exception if it is not true.
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Assert()
Method Detail |
public static final void that(boolean cond)
AssertionFailed
exception if it is not true.
cond
- result of checked condition
public static final void that(java.lang.String description, boolean cond)
AssertionFailed
exception if it is not true.
description
- string describing checked condition
cond
- result of checked condition
Contents | Package | Class | Tree | Deprecated | Index | Help | |||
PREV | NEXT | SHOW LISTS | HIDE LISTS |