Skip to content

Commit 664ddd3

Browse files
authored
Merge pull request #293 from nhaarman/doreturn-overloads-fix
Remove deprecated doReturn function
2 parents 0549f87 + 4c9a1d1 commit 664ddd3

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

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)