|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.japaki.basic.Assert
public class Assert
A set of assertion methods.
Inspired by org.junit.Assert.
| Method Summary | |
|---|---|
static void |
assertElementsNotNull(String message,
List list)
Asserts that no element of a list is null. |
static void |
assertNotNull(String message,
Object object)
Asserts that an object is not null. |
static void |
assertPositive(String message,
int value)
Asserts that the value is greater than zero. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void assertNotNull(String message,
Object object)
null.
message - the identifying message for the exceptionobject - object to check
NullPointerException - if object is null.
public static void assertElementsNotNull(String message,
List list)
null.
message - the identifying message for the exceptionlist - list to check
NullPointerException - if any element of the list is
null.
public static void assertPositive(String message,
int value)
message - the identifying message for the exceptionvalue - value to check
IllegalArgumentException - if value <= 0
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||