Closed trav closed 6 years ago
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:
whenever
Unfinished stubbing detected here: -> at com.MyTest.testMyThing(MyTest.kt:785)
Nice one, thanks!
When Mockito detects unfinished stubbing, it will spit out an error containing:
This is not useful in helping users track down unfinished stubbing. Instead, we inline
whenever
to make it read as: