Skip to content

Commit bf17bc4

Browse files
authored
Merge branch '2.x' into 2.x
2 parents 23c96a3 + 664ddd3 commit bf17bc4

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Mockito-Kotlin is available on Maven Central and JCenter.
99
For Gradle users, add the following to your `build.gradle`, replacing `x.x.x` with the latest version:
1010

1111
```groovy
12-
testCompile "com.nhaarman.mockitokotlin2:mockito-kotlin:x.x.x"
12+
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:x.x.x"
1313
```
1414

1515
## Example

mockito-kotlin/src/main/kotlin/com/nhaarman/mockitokotlin2/OngoingStubbing.kt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,6 @@ fun <T> OngoingStubbing<T>.doReturn(t: T, vararg ts: T): OngoingStubbing<T> {
6161
return thenReturn(t, *ts)
6262
}
6363

64-
/**
65-
* Sets consecutive return values to be returned when the method is called.
66-
*/
67-
@Deprecated(
68-
"Use doReturnConsecutively instead",
69-
ReplaceWith("doReturnConsecutively(ts)"),
70-
level = ERROR
71-
)
72-
inline infix fun <reified T> OngoingStubbing<T>.doReturn(ts: List<T>): OngoingStubbing<T> {
73-
return doReturnConsecutively(ts)
74-
}
75-
7664
/**
7765
* Sets consecutive return values to be returned when the method is called.
7866
*/

0 commit comments

Comments
 (0)