March 2001
Intermediate to advanced
416 pages
10h 27m
English
Collection classes are tested using techniques for primitive classes (see Chapter 5). A test driver will create instances[3] that are passed as parameters in messages to a collection being tested. Test cases center primarily around ensuring that those instances are correctly incorporated into and removed from the collection. Some test cases address any limitations placed on the capacity of the collection. The precise class of each of the objects used in testing a collection class is insignificant in determining the correct operation of the collection class since there is no interaction between a collection instance and the objects in a collection. If forty or fifty items might be added to ...
Read now
Unlock full access