MVN

org.hamcrest : hamcrest-junit

Maven & Gradle

May 27, 2015
362 usages
78 stars

Hamcrest JUnit · Classes to use Hamcrest matchers within JUnit tests

<dependency>
    <groupId>org.hamcrest</groupId>
    <artifactId>hamcrest-junit</artifactId>
    <version>1.0.0.1</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

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

  • Latest Stable: 1.0.0.1
  • Latest Release Candidate: 1.0.0.0-RC1

All Versions

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

Version Vulnerabilities Updated
2.0.x
hamcrest-junit-2.0.0.0
1.0.x
hamcrest-junit-1.0.0.1
hamcrest-junit-1.0.0.0
hamcrest-junit-1.0.0.0-RC1

How to add a dependency to Maven

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

<dependency>
    <groupId>org.hamcrest</groupId>
    <artifactId>hamcrest-junit</artifactId>
    <version>1.0.0.1</version>
</dependency>

How to add a dependency to Gradle

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

implementation 'org.hamcrest:hamcrest-junit:1.0.0.1'

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

implementation("org.hamcrest:hamcrest-junit:1.0.0.1")

How to add a dependency to SBT Scala

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

libraryDependencies += "org.hamcrest" % "hamcrest-junit" % "1.0.0.1"

Advertisement

Dependencies from Group

Jul 09, 2012
5.7k usages
1.9k stars
Oct 16, 2019
4.7k usages
2.1k stars
Oct 16, 2019
4.6k usages
2.1k stars
Oct 16, 2019
1.8k usages
2.1k stars
Jan 18, 2015
717 usages
2.1k stars

Discover Dependencies

Apr 26, 2023
78 usages
Jul 21, 2023
150 usages
866 stars
Jul 09, 2015
8 usages
2.1k stars
Jul 04, 2019
20 usages
Aug 24, 2023
23 usages
75k stars
Aug 02, 2023
4 usages
Apr 24, 2020
144 usages
Aug 16, 2023
4 usages
Apr 30, 2019
1 usages
185 stars