MVN

junit : junit

Maven & Gradle

Feb 13, 2021
95k usages
8.2k 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 Updated
  • junit-4.13.2

    Feb 13, 2021
  • junit-4.13.1

    Oct 11, 2020
  • junit-4.13

    Jan 01, 2020
  • junit-4.13-rc-2

    Dec 01, 2019
  • junit-4.13-rc-1

    Oct 26, 2019
  • junit-4.13-beta-3

    May 05, 2019
  • junit-4.13-beta-2

    Feb 02, 2019
  • junit-4.13-beta-1

    Nov 25, 2018
  • junit-4.12

    Dec 04, 2014
  • junit-4.12-beta-3

    Nov 09, 2014
  • junit-4.12-beta-2

    Sep 25, 2014
  • junit-4.12-beta-1

    Jul 27, 2014
  • junit-4.11

    Nov 14, 2012
  • junit-4.11-beta-1

    Oct 15, 2012
  • junit-4.10

    Sep 29, 2011
  • junit-4.9

    Aug 22, 2011
  • junit-4.8.2

    Oct 05, 2010
  • junit-4.8

    Oct 05, 2010
  • junit-4.8.1

    Feb 25, 2010
  • junit-4.7

    Aug 12, 2009
  • junit-4.6

    May 09, 2009
  • junit-4.5

    Sep 04, 2008
  • junit-4.4

    Aug 21, 2007
  • junit-3.8.2

    May 14, 2007
  • junit-4.3.1

    Mar 30, 2007
  • junit-4.3

    Mar 21, 2007
  • junit-4.2

    Feb 01, 2007
  • junit-4.1

    Oct 07, 2006
  • junit-4.0

    Feb 18, 2006
  • junit-3.7

    Sep 20, 2005
  • junit-3.8

    Sep 20, 2005
  • junit-3.8.1

    Sep 20, 2005

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
95k usages
8.2k stars
Nov 14, 2012
1.2k usages

Discover Dependencies

May 08, 2023
1.7k usages
22k stars
Mar 07, 2023
5.8k usages
593 stars
May 11, 2023
6.6k usages
45k stars
May 24, 2023
14k usages
10k stars
May 26, 2012
13k usages
Jan 06, 2023
12k usages
20k stars
May 18, 2023
9.3k usages
1.6k stars
poi
Sep 09, 2022
1.9k usages
May 18, 2023
3.4k usages
4.8k stars
image

Maven Repository

Search Maven dependencies with Maven Repository Chrome Extension

Add to Chrome