File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
src/main/kotlin/com/nhaarman/mockitokotlin2 Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ dependencies {
2727 compileOnly " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
2828 compileOnly ' org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.0'
2929
30- compile " org.mockito:mockito-core:2.23 .0"
30+ compile " org.mockito:mockito-core:3.7 .0"
3131
3232 testCompile ' junit:junit:4.12'
3333 testCompile ' com.nhaarman:expect.kt:1.0.0'
Original file line number Diff line number Diff line change @@ -84,8 +84,21 @@ fun <T> verifyNoMoreInteractions(vararg mocks: T) {
8484/* *
8585 * Verifies that no interactions happened on given mocks beyond the previously verified interactions.
8686 *
87- * Alias for [Mockito.verifyZeroInteractions ].
87+ * Alias for [Mockito.verifyNoInteractions ].
8888 */
89+ fun verifyNoInteractions (vararg mocks : Any ) {
90+ Mockito .verifyNoInteractions(* mocks)
91+ }
92+
93+ /* *
94+ * @deprecated
95+ *
96+ * Please migrate your code to [verifyNoInteractions].
97+ */
98+ @Deprecated(
99+ " Use verifyNoInteractions() instead." ,
100+ ReplaceWith (" verifyNoInteractions(vararg mocks: Any)" )
101+ )
89102fun verifyZeroInteractions (vararg mocks : Any ) {
90103 Mockito .verifyZeroInteractions(* mocks)
91104}
You can’t perform that action at this time.
0 commit comments