File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,11 @@ A small library that provides helper functions to work with [Mockito](https://gi
5
5
6
6
## Install
7
7
8
- Mockito-Kotlin is available on Maven Central.
8
+ Mockito-Kotlin is available on Maven Central and JCenter .
9
9
For Gradle users, add the following to your ` build.gradle ` , replacing ` x.x.x ` with the latest version:
10
10
11
11
``` groovy
12
- repositories {
13
- mavenCentral()
14
- }
15
- dependencies {
16
- testCompile "com.nhaarman:mockito-kotlin:x.x.x"
17
- }
12
+ testCompile "com.nhaarman:mockito-kotlin:x.x.x"
18
13
```
19
14
20
15
## Example
@@ -23,7 +18,7 @@ A test using Mockito-Kotlin typically looks like the following:
23
18
24
19
``` kotlin
25
20
@Test
26
- fun a (){
21
+ fun doAction_doesSomething (){
27
22
/* Given */
28
23
val mock = mock<MyClass > {
29
24
on { getText() } doReturn " text"
You can’t perform that action at this time.
0 commit comments