|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | CONST | FIELD | CONSTR | METHOD | DETAIL: CONST | FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--satin.common.assertion.Assert
public abstract class Assert
extends java.lang.ObjectWrapper for assertion functions. Objects of this class cannot be instantiated.
| Method Summary | |
static void |
condition(boolean condition)
Throws an AssertionError
if the condition is false. |
static void |
condition(boolean condition,
java.lang.String descr)
Throws an AssertionError
if the condition is false. |
static void |
inRange(long value,
long min,
long max)
Throws an AssertionError
if the value is out of range. |
static void |
inRange(long value,
long min,
long max,
java.lang.String descr)
Throws an AssertionError
if the value is out of range. |
static void |
notNull(java.lang.Object obj)
Throws an AssertionError
if the object is null. |
static void |
notNull(java.lang.Object obj,
java.lang.String descr)
Throws an AssertionError
if the object is null. |
static void |
notReached()
Throws an AssertionError
to indicate unreachable code. |
static void |
notReached(java.lang.String descr)
Throws an AssertionError
to indicate unreachable code. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void notReached()
AssertionError
to indicate unreachable code.
Use this in place of otherwise dangling "else" clauses or
missing "default" statements to indicate a code path that
should never happen.
AssertionError - public static void notReached(java.lang.String descr)
AssertionError
to indicate unreachable code.
Use this in place of otherwise dangling "else" clauses or
missing "default" statements to indicate a code path that
should never happen.
descrAssertionError - public static void notNull(java.lang.Object obj)
AssertionError
if the object is null.
objAssertionError -
public static void notNull(java.lang.Object obj,
java.lang.String descr)
AssertionError
if the object is null.
objdescrAssertionError -
public static void inRange(long value,
long min,
long max,
java.lang.String descr)
AssertionError
if the value is out of range.
valueminmaxdescrAssertionError -
public static void inRange(long value,
long min,
long max)
AssertionError
if the value is out of range.
valueminmaxAssertionError - public static void condition(boolean condition)
AssertionError
if the condition is false.
Use this only when a more specific Assert function
is not appropriate.
conditionAssertionError -
public static void condition(boolean condition,
java.lang.String descr)
AssertionError
if the condition is false.
Use this only when a more specific Assert function
is not appropriate.
conditiondescrAssertionError - | Revision History |
5/31/01 Ed Stauff - made changes to docs per initial code review.
20 March 2001 - reviewed by Test Automation team.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | CONST | FIELD | CONSTR | METHOD | DETAIL: CONST | FIELD | CONSTR | METHOD | ||||||||
Assert.java (PRIVATE SOURCES)