Commit 081d2cb
committed
Inline
When Mockito detects unfinished stubbing, it will spit out an error containing:
```
Unfinished stubbing detected here:
-> at com.nhaarman.mockitokotlin2.OngoingStubbingKt.whenever(OngoingStubbing.kt:42)
```
This is not useful in helping users track down unfinished stubbing. Instead, we inline `whenever`
to make it read as:
```
Unfinished stubbing detected here:
-> at com.me.MyTest.testMyThing(MyTest.kt:785)
```whenever to let Mockito's UnfinishedStubbing messages work1 parent 87059d8 commit 081d2cb
File tree
2 files changed
+20
-2
lines changed- mockito-kotlin/src/main/kotlin/com/nhaarman/mockitokotlin2
- tests/src/test/kotlin/test
2 files changed
+20
-2
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
322 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
0 commit comments