Extreme Testing Applied
In this section we create a small Java application and employ JUnit, a Javabased open-source unit testing suite, to illustrate the concepts of Extreme Testing (see Figure 9.2). The example itself is trivial; the concepts, however, apply to most programming situations. Our example is a command-line application that simply determines whether an input value is a prime number. For brevity, the source code,