next up previous
Next: 1.6.1.4 Template Up: 1.6.1 The Design Recipe Previous: 1.6.1.2 Contract, Header, and

1.6.1.3 Examples

Each class in a data definition should include a collection of static fields containing sample data values and a static test() method that tests each of the class methods on appropriate examples. This process is described in detail in Section 1.6.2. If the body of a method contains more than one control path (e.g. a conditional statement), the collection of test examples should include at least one example for each control path.



Corky Cartwright
2001-08-02