Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verifyBlocking with VerificationMode #317

Closed
dpreussler opened this issue Dec 28, 2018 · 1 comment
Closed

verifyBlocking with VerificationMode #317

dpreussler opened this issue Dec 28, 2018 · 1 comment

Comments

@dpreussler
Copy link

dpreussler commented Dec 28, 2018

there is only one version of verifyBlocking:

fun <T> verifyBlocking(mock: T, f: suspend T.() -> Unit) 

but normal verify has 2 version, one with, one without VerificationMode.

Please add

fun <T> verifyBlocking(mock: T, mode: VerificationMode, f: suspend T.() -> Unit) {
    val m = Mockito.verify(mock, mode)
    runBlocking { m.f() }
}
dpreussler pushed a commit to dpreussler/mockito-kotlin that referenced this issue Dec 30, 2018
nhaarman added a commit that referenced this issue Dec 31, 2018
#317 coroutines verify with verification mode
@nhaarman
Copy link
Collaborator

Fixed in #318

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants