Commit 5a5fa35
pawel bochenski
Added stub extension function
with this method one can define mock for class
val someMock = mock<Object>()
and then define stubs in test
someMock.stub {
on { something } doReturn somethingElse
}
It is useful when some tests reuse mock object but with different stubbing1 parent 4c7c942 commit 5a5fa35
File tree
1 file changed
+2
-0
lines changed- mockito-kotlin/src/main/kotlin/com/nhaarman/mockito_kotlin
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
| |||
0 commit comments