Skip to content

Commit

Permalink
Remove verifyZeroInteractions + bump mockito-core
Browse files Browse the repository at this point in the history
... to 4.0.0.

Fixes mockito#446.
  • Loading branch information
rashadsookram committed Oct 8, 2021
1 parent b96b5ce commit c05d1d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion mockito-kotlin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies {
compileOnly "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compileOnly 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.0'

compile "org.mockito:mockito-core:3.12.4"
compile "org.mockito:mockito-core:4.0.0"

testCompile 'junit:junit:4.12'
testCompile 'com.nhaarman:expect.kt:1.0.0'
Expand Down
13 changes: 0 additions & 13 deletions mockito-kotlin/src/main/kotlin/org/mockito/kotlin/Verification.kt
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,6 @@ fun verifyNoInteractions(vararg mocks: Any) {
Mockito.verifyNoInteractions(*mocks)
}

/**
* @deprecated
*
* Please migrate your code to [verifyNoInteractions].
*/
@Deprecated(
"Use verifyNoInteractions() instead.",
ReplaceWith("verifyNoInteractions(vararg mocks: Any)")
)
fun verifyZeroInteractions(vararg mocks: Any) {
Mockito.verifyZeroInteractions(*mocks)
}

/**
* Allows verifying exact number of invocations.
*
Expand Down

0 comments on commit c05d1d8

Please sign in to comment.