com.cometway.util
Class Assert
java.lang.Object
com.cometway.util.Assert
public class Assert
- extends java.lang.Object
This class provides a suite of methods to perform tests.
If the test fails, a RuntimeError is thrown.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Assert
public Assert()
fail
public static void fail()
fail
public static void fail(java.lang.String message)
isFalse
public static void isFalse(boolean b)
isGreaterThanZero
public static void isGreaterThanZero(int i)
isGreaterThanZero
public static void isGreaterThanZero(long l)
isGreaterThanZero
public static void isGreaterThanZero(double d)
isGreaterThanZero
public static void isGreaterThanZero(float f)
isNotNull
public static void isNotNull(java.lang.Object obj)
isNull
public static void isNull(java.lang.Object obj)
isTrue
public static void isTrue(boolean b)
isNotEmpty
public static void isNotEmpty(java.lang.String s)
isNotEmpty
public static void isNotEmpty(java.lang.Object[] o)
main
public static void main(java.lang.String[] args)