|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | CONST | FIELD | CONSTR | METHOD | DETAIL: CONST | FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--satin.common.assertion.Ensure
public abstract class Ensure
extends java.lang.ObjectWrapper for output requirement functions. Objects of this class cannot be instantiated.
| Method Summary | |
static void |
condition(boolean condition)
Throws an OutputRequirement
if the condition is false. |
static void |
condition(boolean condition,
java.lang.String descr)
Throws an OutputRequirement
if the condition is false. |
static void |
inRange(long value,
long min,
long max)
Throws an OutputRequirement
if the value is out of range. |
static void |
inRange(long value,
long min,
long max,
java.lang.String descr)
Throws an OutputRequirement
if the value is out of range. |
static void |
notNull(java.lang.Object obj)
Throws an OutputRequirement
if the object is null. |
static void |
notNull(java.lang.Object obj,
java.lang.String descr)
Throws an OutputRequirement
if the object is null. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void notNull(java.lang.Object obj)
OutputRequirement
if the object is null.
objOutputRequirement -
public static void notNull(java.lang.Object obj,
java.lang.String descr)
OutputRequirement
if the object is null.
objdescrOutputRequirement -
public static void inRange(long value,
long min,
long max)
OutputRequirement
if the value is out of range.
valueminmaxOutputRequirement -
public static void inRange(long value,
long min,
long max,
java.lang.String descr)
OutputRequirement
if the value is out of range.
valueminmaxdescrOutputRequirement - public static void condition(boolean condition)
OutputRequirement
if the condition is false.
Use this only when a more specific Ensure function
is not appropriate.
conditionOutputRequirement -
public static void condition(boolean condition,
java.lang.String descr)
OutputRequirement
if the condition is false.
Use this only when a more specific Ensure function
is not appropriate.
conditiondescrOutputRequirement - | 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 | ||||||||
Ensure.java (PRIVATE SOURCES)