org.tromer.jie
Class Assert

java.lang.Object
  |
  +--org.tromer.jie.Assert

public class Assert
extends java.lang.Object

Utility class for verifying fulfillment of conditions. All members are static methods that verify some condition and throw an AssertionFailureException if it's not fulfilled.


Inner Class Summary
static interface Assert.AssertionFailureException
           
 
Constructor Summary
Assert()
           
 
Method Summary
static void failure()
          Always fails
static void isFalse(boolean notOK)
           
static void isNull(java.lang.Object obj)
           
static void isTrue(boolean ok)
           
static void notNull(java.lang.Object obj)
           
static void unimplemented(java.lang.String feature)
          Always fails, with an exception message explaining a feature is missing.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assert

public Assert()
Method Detail

isTrue

public static void isTrue(boolean ok)

isFalse

public static void isFalse(boolean notOK)

isNull

public static void isNull(java.lang.Object obj)

notNull

public static void notNull(java.lang.Object obj)

failure

public static void failure()
Always fails

unimplemented

public static void unimplemented(java.lang.String feature)
Always fails, with an exception message explaining a feature is missing.