Skip to content

Commit 7fd2b47

Browse files
authored
Update README (#591)
1 parent c444c6a commit 7fd2b47

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
# Mockito-Kotlin
22

3-
[ ![Download](https://maven-badges.herokuapp.com/maven-central/org.mockito.kotlin/mockito-kotlin/badge.svg) ](https://maven-badges.herokuapp.com/maven-central/org.mockito.kotlin/mockito-kotlin)
4-
[![Nexus Snapshot](https://img.shields.io/nexus/s/org.mockito.kotlin/mockito-kotlin?server=https%3A%2F%2Fs01.oss.sonatype.org%2F)](https://s01.oss.sonatype.org/content/repositories/snapshots/org/mockito/kotlin/mockito-kotlin/)
3+
[![Maven Central Version](https://img.shields.io/maven-central/v/org.mockito.kotlin/mockito-kotlin)](https://central.sonatype.com/artifact/org.mockito.kotlin/mockito-kotlin)
54

65
A small library that provides helper functions to work with [Mockito](https://github.com/mockito/mockito) in Kotlin.
76

87
## Install
98

109
Mockito-Kotlin is available on Maven Central.
11-
For Gradle users, add the following to your `build.gradle`, replacing `x.x.x` with the latest version:
10+
For Gradle users, add the following to your build file, replacing `x.x.x` with the latest version:
1211

12+
`build.gradle`:
1313
```groovy
1414
testImplementation "org.mockito.kotlin:mockito-kotlin:x.x.x"
1515
```
1616

17+
`build.gradle.kts`:
18+
```kotlin
19+
testImplementation("org.mockito.kotlin:mockito-kotlin:x.x.x")
20+
```
21+
1722
## Example
1823

1924
A test using Mockito-Kotlin typically looks like the following:
@@ -37,6 +42,10 @@ fun doAction_doesSomething(){
3742

3843
For more info and samples, see the [Wiki](https://github.com/mockito/mockito-kotlin/wiki).
3944

45+
## Android Support
46+
47+
See the [Android Support wiki](https://github.com/mockito/mockito-kotlin/wiki/Android-Support).
48+
4049
## Building
4150

4251
Mockito-Kotlin is built with Gradle.

0 commit comments

Comments
 (0)