|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jbeantester.framework.Assert
Convenience class that provides basic assertion checking
Field Summary | |
protected static Logger |
cat
A Logger to use in this object and all derivatives. |
static boolean |
DEBUG
variable used for debugging purposes only |
Method Summary | |
static void |
isNonNull(Object o)
Assert that the given argument is not null , halt execution
otherwise. |
static void |
isNonNull(Object o,
String message)
Assert that the given argument is not null , halt execution
otherwise. |
static void |
isTrue(boolean b)
Assert that the given argument is true , halt execution
otherwise. |
static void |
isTrue(boolean b,
String message)
Assert that the given argument is true , halt execution
otherwise. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final Logger cat
public static final boolean DEBUG
Method Detail |
public static final void isTrue(boolean b)
true
, halt execution
otherwise.
b
- the argument to check for truth
AssertionError
- if the given argument is false
public static final void isTrue(boolean b, String message)
true
, halt execution
otherwise.
b
- the argument to check for truthmessage
- an error message to display if the argument is
false
AssertionError
- if the given argument is false
public static final void isNonNull(Object o)
null
, halt execution
otherwise.
o
- the argument to check for null-ness
AssertionError
- if the given argument is
null
public static final void isNonNull(Object o, String message)
null
, halt execution
otherwise.
o
- the argument to check for null-nessmessage
- an error message to display if the argument is
null
AssertionError
- if the given argument is
null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |