XP Home

Unit Test Framework
for a Coffee Maker

 

 We can get a unit testing framework for Java easy enough. The one we will be using here is one which runs as an applet and is compiled with Sun's 1.0.2 JDK compiler. This code should run on most browsers.
 We will create a test suite of three tests to just test the unit test framework. They are a test which passes, a test which fails due to a bad computation, and a test which aborts because some unexpected exception occurs.
 The applet in the right column is our unit test framework, click run tests to see if it works. The source code is available for download.
 Things are going well, we have our unit

testing framework, story cards, and we are ready to do our spike solution. After that we can begin to estimate our project scope and create a schedule with a release planning meeting.

ExtremeProgramming.org home | XP and the Coffee Maker | A Spike Solution |

Copyright 1999 by Don Wells.