Skip to content

Download and Install

xuhdev edited this page Apr 14, 2013 · 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.11 was the latest version as of the latest edit on this page. It may now be stable.)

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