https://kotlinlang.org logo
#feed
Title
e

enleur

10/30/2018, 9:58 AM
d

Daniel

10/30/2018, 5:27 PM
Hi Sergey and first of all a huge thanks for your lib! I might have found a minor oversight:
Copy code
/**
 * Allows verifying over a given period. It causes a verify to wait for a specified period of time for a desired
 * interaction rather than failing immediately if has not already happened. May be useful for testing in concurrent
 * conditions.
 */
fun after(millis: Long): VerificationAfterDelay? {
    return Mockito.after(millis)
}
The returned type is nullable but I guess it should not be, since we would have to write:
verify(widening, after(delay)!!).invoke()
?
e

enleur

10/30/2018, 6:25 PM
@Daniel it’s not my lib, just posted about it 🙂 @nhaarman is the author
5 Views