Driver examples

  • The simplest form of driver is a main() method for a class, containing statements that carry out simple testing of the class. If the class is an ADT, the main() test driver will create some objects of the class, add values, retrieve values, and use the other operations on the class. Techniques from previous chapters, like sequencing constraints and state-based testing, can be implemented in the driver. <bib>ammann-offutt:2008</bib>