|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectpatterntesting.runtime.dbc.DbC
public final class DbC
| Method Summary | |
|---|---|
static void |
ensure(boolean postcondition)
Use this method to describe the condition which must be true when the preconditions were true and your method is finished. |
static void |
ensure(boolean postcondition,
Object message)
Use this method to describe the condition which must be true when the preconditions were true and your method is finished. |
static void |
require(boolean precondition)
Use this method to describe the condition which must be true when your method is called. |
static void |
require(boolean precondition,
Object message)
Use this method to describe the condition which must be true when your method is called. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void require(boolean precondition)
precondition - e.g. (arg0 != null)
public static void require(boolean precondition,
Object message)
precondition - e.g. (arg0 != null)message - e.g. "null argument is not allowed"public static void ensure(boolean postcondition)
postcondition - e.g. (value > 0)
public static void ensure(boolean postcondition,
Object message)
postcondition - e.g. (value > 0)message - e.g. "value must be positive"
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||