| java.lang.Object org.jicarilla.lang.Assert
Assert | final public class Assert (Code) | | Basic wrapper around the assert keyword allowing pre-jdk-1.4
applications to use them (by providing a different implementation for this
class). Insipired (of course!) by the Assert class in junit.
author: Leo Simons version: $Id: Assert.java,v 1.1 2004/03/23 13:37:56 lsimons Exp $ |
Method Summary | |
public static void | assertFalse(boolean expression) Makes sure a certain boolean value is false. | public static void | assertFalse(String message, boolean expression) Makes sure a certain boolan value is falsse. | public static void | assertNotNull(Object object) Makes sure an object reference does not contain null. | public static void | assertNotNull(String message, Object object) Makes sure an object reference does not contain null. | public static void | assertTrue(boolean expression) Makes sure a certain boolean value is true. | public static void | assertTrue(String message, boolean expression) Makes sure a certain boolan value is true. | protected static void | doAssert(boolean expression, String msg) Does the 'actual' assertion. |
assertFalse | public static void assertFalse(boolean expression)(Code) | | Makes sure a certain boolean value is false.
Parameters: expression - the boolean value to test throws: AssertionError - if the boolean value is true |
assertFalse | public static void assertFalse(String message, boolean expression)(Code) | | Makes sure a certain boolan value is falsse.
Parameters: message - the message to use for the AssertionError if it isthrown Parameters: expression - the boolean value to test throws: AssertionError - if the boolean value is true |
assertNotNull | public static void assertNotNull(Object object)(Code) | | Makes sure an object reference does not contain null.
Parameters: object - an object reference which should not contain null throws: AssertionError - if the object reference contains null |
assertNotNull | public static void assertNotNull(String message, Object object)(Code) | | Makes sure an object reference does not contain null.
Parameters: message - the message to use for the AssertionError if it isthrown Parameters: object - an object reference which should not contain null throws: AssertionError - if the object reference contains null |
assertTrue | public static void assertTrue(boolean expression)(Code) | | Makes sure a certain boolean value is true.
Parameters: expression - the boolean value to test throws: AssertionError - if the boolean value is false |
assertTrue | public static void assertTrue(String message, boolean expression)(Code) | | Makes sure a certain boolan value is true.
Parameters: message - the message to use for the AssertionError if it isthrown Parameters: expression - the boolean value to test throws: AssertionError - if the boolean value is false |
doAssert | protected static void doAssert(boolean expression, String msg)(Code) | | Does the 'actual' assertion. Common helper method for the rest of the
methods in this class.
Parameters: expression - the boolean value to test Parameters: msg - the message to use for the AssertionError if it is thrown throws: AssertionError - if the boolean value is false |
|
|