MVN

junit : junit

Maven & Gradle

Feb 13, 2021
95.1k usages
8.4k stars

JUnit · JUnit is a unit testing framework for Java, created by Erich Gamma and Kent Beck.

<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.13.2</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of junit : junit to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 4.13.2
  • Latest Release Candidate: 4.13-rc-2
  • Latest Beta: 4.13-beta-3

All Versions

Choose a version of junit : junit to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
4.13.x
junit-4.13.2
junit-4.13.1
4.13
junit-4.13
CVE-2020-15250
junit-4.13-rc-2
CVE-2020-15250
junit-4.13-rc-1
CVE-2020-15250
junit-4.13-beta-3
CVE-2020-15250
junit-4.13-beta-2
CVE-2020-15250
junit-4.13-beta-1
CVE-2020-15250
4.12
junit-4.12
CVE-2020-15250
junit-4.12-beta-3
CVE-2020-15250
junit-4.12-beta-2
CVE-2020-15250
junit-4.12-beta-1
CVE-2020-15250
4.11
junit-4.11
CVE-2020-15250
junit-4.11-beta-1
CVE-2020-15250
4.10
junit-4.10
CVE-2020-15250
4.9
junit-4.9
CVE-2020-15250
4.8.x
junit-4.8.2
CVE-2020-15250
junit-4.8.1
CVE-2020-15250
4.8
junit-4.8
CVE-2020-15250
4.7
junit-4.7
CVE-2020-15250
4.6
junit-4.6
4.5
junit-4.5
4.4
junit-4.4
4.3.x
junit-4.3.1
4.3
junit-4.3
4.2
junit-4.2
4.1
junit-4.1
4.0
junit-4.0
3.8.x
junit-3.8.2
junit-3.8.1
3.8
junit-3.8
3.7
junit-3.7

How to add a dependency to Maven

Add the following junit : junit maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.13.2</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following junit : junit gradle dependency to your build.gradle file:

implementation 'junit:junit:4.13.2'

Gradle Kotlin DSL: Add the following junit : junit gradle kotlin dependency to your build.gradle.kts file:

implementation("junit:junit:4.13.2")

How to add a dependency to SBT Scala

SBT Scala: Add the following junit : junit sbt scala dependency to your build.sbt file:

libraryDependencies += "junit" % "junit" % "4.13.2"

Advertisement

Dependencies from Group

Feb 13, 2021
95.1k usages
8.4k stars
Nov 14, 2012
1.2k usages

Discover Dependencies

Aug 24, 2023
442 usages
73.7k stars
Jul 31, 2023
1.7k usages
29.8k stars
Mar 07, 2023
5.8k usages
593 stars
Jul 13, 2023
6.6k usages
55.7k stars
May 24, 2023
14.4k usages
12.1k stars
May 26, 2012
13.6k usages
Jan 06, 2023
12.1k usages
22.2k stars
May 18, 2023
9.3k usages
1.8k stars
poi
Sep 09, 2022
1.9k usages
Aug 07, 2023
3.4k usages
5.8k stars