MVN

com.nhaarman : mockito-kotlin

Maven & Gradle

Jun 21, 2018
148 usages
3.1k stars

Mockito-Kotlin · Using Mockito with Kotlin.

<dependency>
    <groupId>com.nhaarman</groupId>
    <artifactId>mockito-kotlin</artifactId>
    <version>1.6.0</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of com.nhaarman : mockito-kotlin to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 1.6.0
  • Latest Release Candidate: 1.0.0-RC1

All Versions

Choose a version of com.nhaarman : mockito-kotlin to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
1.6.x
mockito-kotlin-1.6.0
1.5.x
mockito-kotlin-1.5.0
1.4.x
mockito-kotlin-1.4.0
1.3.x
mockito-kotlin-1.3.0
1.2.x
mockito-kotlin-1.2.0
1.1.x
mockito-kotlin-1.1.0
1.0.x
mockito-kotlin-1.0.1
mockito-kotlin-1.0.0
mockito-kotlin-1.0.0-RC1
0.12.x
mockito-kotlin-0.12.2
mockito-kotlin-0.12.1
mockito-kotlin-0.12.0
0.11.x
mockito-kotlin-0.11.0
0.10.x
mockito-kotlin-0.10.1
mockito-kotlin-0.10.0
0.9.x
mockito-kotlin-0.9.0
0.8.x
mockito-kotlin-0.8.1

How to add a dependency to Maven

Add the following com.nhaarman : mockito-kotlin maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>com.nhaarman</groupId>
    <artifactId>mockito-kotlin</artifactId>
    <version>1.6.0</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following com.nhaarman : mockito-kotlin gradle dependency to your build.gradle file:

implementation 'com.nhaarman:mockito-kotlin:1.6.0'

Gradle Kotlin DSL: Add the following com.nhaarman : mockito-kotlin gradle kotlin dependency to your build.gradle.kts file:

implementation("com.nhaarman:mockito-kotlin:1.6.0")

How to add a dependency to SBT Scala

SBT Scala: Add the following com.nhaarman : mockito-kotlin sbt scala dependency to your build.sbt file:

libraryDependencies += "com.nhaarman" % "mockito-kotlin" % "1.6.0"

Advertisement