net.esper.util
Class AssertionFacility
java.lang.Object
net.esper.util.AssertionFacility
public class AssertionFacility
- extends Object
Simple facility for asserting at runtime.
Method Summary |
static void |
assertFalse(boolean value,
String message)
Assert the value is false and raise exception if true. |
static void |
assertTrue(boolean value,
String message)
Assert the value is true and raise exception if false. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssertionFacility
public AssertionFacility()
assertTrue
public static void assertTrue(boolean value,
String message)
throws AssertionException
- Assert the value is true and raise exception if false.
- Parameters:
value
- - boolean to checkmessage
- - message to place in exception
- Throws:
AssertionException
- thrown if value is false
assertFalse
public static void assertFalse(boolean value,
String message)
throws AssertionException
- Assert the value is false and raise exception if true.
- Parameters:
value
- - boolean to checkmessage
- - message to place in exception
- Throws:
AssertionException
- thrown if value is true