JUnit is a unit-testing framework for writing compilable, fully automated unit tests for Java classes. It provides an excellent basis for students to learn about more systematic approaches to testing their own code.
Stephen H. Edwards. Best practices for on-line delivery. Presented at the 7th Workshop on Teaching Software Testing, Melbourne, FL, January 18-20, 2008.