What is JUnit and what can it do for you?

JUnit is an open source Java testing framework used to write and run repeatable tests. The kind of "unit test" done with JUnit must be distinguished from the kind of integration testing and acceptance testing that is is required to make sure an application works as a whole and meets the end-user's requirements. Unit testing is more like a test of one or a few classes in isolation to make sure they do what they are supposed to do before they are used in any larger context.

JUnit features include:

In the 2003 version of CSC 465 one team prepared a tutorial on JUnit as part of their team project, and you can access that tutorial here.