# JUnit

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

- Getting Started
- Documentation
- JUnit related sites/projects
- Mailing Lists
- Get Involved

## Getting Started

To get started with unit testing and JUnit read the article: JUnit Cookbook.
This article describes basic test writing using JUnit 4.

You find additional samples in the org.junit.samples package:

- SimpleTest.java - some simple test cases
- VectorTest.java - test cases for java.util.Vector

JUnit 4.x only comes with a textual TestRunner. For graphical feedback, most major IDE's support JUnit 4. If necessary, you can run JUnit 4 tests in a JUnit 3 environment by adding the following method to each test class:

    public static Test suite() {
       return new JUnit4TestAdapter(ThisClass.class);
    }

## Documentation

> JUnit Cookbook
> A cookbook for implementing tests with JUnit.
> Javadoc
> API documentation generated with javadoc.
> Frequently asked questions
> Some frequently asked questions about using JUnit.
> Release notes
> Latest JUnit release notes
> License
> The terms of the common public license used for JUnit.

The following documents still describe JUnit 3.8.

> The JUnit 3.8 version of this homepage
> Test Infected - Programmers Love Writing Tests
> An article demonstrating the development process with JUnit.
> JUnit - A cooks tour

## JUnit Related Projects/Sites

- junit.org - a site for software developers using JUnit. It provides instructions for how to integrate JUnit with development tools like JBuilder and VisualAge/Java. As well as articles about and extensions to JUnit.
- XProgramming.com - various implementations of the xUnit testing framework architecture.

## Mailing Lists

There are three junit mailing lists:

- JUnit announce: junit-announce@lists.sourceforge.net Archives/Subscribe/Unsubscribe
- JUnit users list: junit@yahoogroups.com Archives/Subscribe/Unsubscribe
- JUnit developer list: junit-devel@lists.sourceforge.net Archives/Subscribe/Unsubscribe

## 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.
JUnit source code is now hosted on GitHub.

hosted by