common
public final class: Assert [javadoc |
source]
java.lang.Object
common.Assert
Simple assertion mechanism for use during development
| Method from common.Assert Detail: |
public static void verify(boolean condition) {
if (!condition)
{
throw new AssertionFailed();
}
}
Throws an AssertionFailed exception if the specified condition is
false |
public static void verify(boolean condition,
String message) {
if (!condition)
{
throw new AssertionFailed(message);
}
}
If the condition evaluates to false, an AssertionFailed is thrown |