Download and Install

Christian Stein edited this page Nov 6, 2018 · 32 revisions

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

Plain-old JAR

Download the following JARs and add them to 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>

Gradle

See Use-with-Gradle

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.