org.zoolu.tools
Class Assert
java.lang.Object
|
+--org.zoolu.tools.Assert
- public class Assert
- extends java.lang.Object
Class Assert provides some static methods to check some inline conditions.
When an assertion fails an AssertionException is throws.
Such a tool could be helpful for debugging.
|
Method Summary |
static void |
isFalse(boolean exp)
Check that exp is false, otherwise an AssertionException is thrown. |
static void |
isFalse(boolean exp,
java.lang.String msg)
Check that exp is false, otherwise an AssertionException is thrown. |
static void |
isTrue(boolean exp)
Check that exp is true, otherwise an AssertionException is thrown. |
static void |
isTrue(boolean exp,
java.lang.String msg)
Check that exp is true, otherwise an AssertionException is thrown. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Assert
public Assert()
isTrue
public static final void isTrue(boolean exp)
- Check that exp is true, otherwise an AssertionException is thrown.
isFalse
public static final void isFalse(boolean exp)
- Check that exp is false, otherwise an AssertionException is thrown.
isTrue
public static final void isTrue(boolean exp,
java.lang.String msg)
- Check that exp is true, otherwise an AssertionException is thrown.
isFalse
public static final void isFalse(boolean exp,
java.lang.String msg)
- Check that exp is false, otherwise an AssertionException is thrown.