Skip to content

Download and Install

Anders Pitman edited this page Jan 24, 2015 · 35 revisions

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

Plain-old JAR

Download the following JARs and put them on your test classpath:

Maven

Add a dependency to junit:junit in test scope. (Note: 4.12 is the latest stable version as of the latest edit on this page.)

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