MVN

com.nhaarman.mockitokotlin2 : mockito-kotlin

Maven & Gradle

Sep 08, 2019
194 usages
3k stars

Mockito-Kotlin · Using Mockito with Kotlin.

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

Latest Version

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

  • Latest Stable: 2.2.0
  • Latest Release Candidate: 2.0.0-RC3
  • Latest Alpha: 2.0.0-alpha04

All Versions

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

Version Vulnerabilities Updated
2.2.x
mockito-kotlin-2.2.0
2.1.x
mockito-kotlin-2.1.0
2.0.x
mockito-kotlin-2.0.0
mockito-kotlin-2.0.0-RC3
mockito-kotlin-2.0.0-RC2
mockito-kotlin-2.0.0-RC1
mockito-kotlin-2.0.0-alpha04
mockito-kotlin-2.0.0-alpha03
mockito-kotlin-2.0.0-alpha02
mockito-kotlin-2.0.0-alpha01

How to add a dependency to Maven

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

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

How to add a dependency to Gradle

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

implementation 'com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0'

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

implementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0")

How to add a dependency to SBT Scala

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

libraryDependencies += "com.nhaarman.mockitokotlin2" % "mockito-kotlin" % "2.2.0"

Advertisement

Dependencies from Group

Sep 08, 2019
194 usages
3k stars

Discover Dependencies

Nov 12, 2018
1 usages
30.9k stars
Jul 09, 2012
5.7k usages
1.9k stars
Aug 23, 2023
150 usages
Aug 01, 2018
916 usages
21 stars
Jun 02, 2023
186 usages
Feb 10, 2020
437 usages
Jan 23, 2013
175 usages
Apr 21, 2021
98 usages
1.9k stars
May 17, 2023
35 usages
15.8k stars
May 24, 2017
830 usages