JUnit

JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.

Getting Started

To get started with unit testing and JUnit read the Java Report article: Test Infected - Programmers Love Writing Tests.
This article demonstrates the development process with JUnit in the context of multiple currency arithmetic. The corresponding source code is in junit\samples\money.

You find additional samples in the junit.samples package:

Which TestRunner to use?

JUnit comes with different TestRunners:

Documentation

README
JUnit Cookbook
    A cookbook for implementing tests with JUnit.
Test Infected - Programmers Love Writing Tests
    An article demonstrating the development process with JUnit.
JUnit - A cooks tour
Frequently asked questions
    Some frequently asked questions about using JUnit.

JUnit Related Projects/Sites

Mailing Lists

There are three junit mailing lists:

Get Involved

JUnit celebrates programmers testing their own software. As a result bugs, patches, and feature requests which include JUnit TestCases have a better chance of being addressed than those without. JUnit is forged on Sourceforge please use the tools provided for your submissions.
hosted by SourceForge Logo