Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nhaarman committed Dec 3, 2016
1 parent 559ffc5 commit 5418cff
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,11 @@ A small library that provides helper functions to work with [Mockito](https://gi

## Install

Mockito-Kotlin is available on Maven Central.
Mockito-Kotlin is available on Maven Central and JCenter.
For Gradle users, add the following to your `build.gradle`, replacing `x.x.x` with the latest version:

```groovy
repositories {
mavenCentral()
}
dependencies {
testCompile "com.nhaarman:mockito-kotlin:x.x.x"
}
testCompile "com.nhaarman:mockito-kotlin:x.x.x"
```

## Example
Expand All @@ -23,7 +18,7 @@ A test using Mockito-Kotlin typically looks like the following:

```kotlin
@Test
fun a(){
fun doAction_doesSomething(){
/* Given */
val mock = mock<MyClass> {
on { getText() } doReturn "text"
Expand Down

0 comments on commit 5418cff

Please sign in to comment.