Skip to content

Download and Install

marcphilipp edited this page Feb 10, 2013 · 35 revisions

To download and install JUnit you currently have the following options.

Plain-old JAR

Download the following JARs:

To use those JARs simply put them on your test classpath.

Maven

Add a dependency to junit:junit in test scope. (Note: 4.11 was the latest version as of the latest edit on this page. It may now be stale.)

<dependency>
  <groupId>junit</groupId>
  <artifactId>junit</artifactId>
  <version>4.11</version>
  <scope>test</scope>
</dependency>
Clone this wiki locally