JUnit Installation

Published: Wednesday, 11 August 2004

Visit the main website at junit.org and download the binary distribution and unpack it.

Maven package dependency

Add the following dependency to your pom.xml

<dependency>
  <groupId>junit</groupId>
  <artifactId>junit</artifactId>
  <version>4.8.2</version>
  <scope>test</scope>
</dependency>

JUnit-addons

To test the contents of two arrays we can use an already written addon for JUnit. Download version 1.4 from http://junit-addons.sourceforge.net/ and unpack it.