|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object finiteAutomata.Assert
public class Assert
Provides basic assertion testing for pre-conditions.
An assertion is a condition that is expected to be true at a certain point in the code. Selective testing of method pre-conditions should reduce programming errors and simplify debugging.
Constructor Summary | |
---|---|
Assert()
|
Method Summary | |
---|---|
static void |
pre(boolean test,
java.lang.String message)
Performs a verification of the condition, and does nothing if the condition holds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Assert()
Method Detail |
---|
public static void pre(boolean test, java.lang.String message)
test
- a boolean expression for the condition to be testedmessage
- an English description of the condition
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |