File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
mockito-kotlin/src/main/kotlin/org/mockito/kotlin Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,21 @@ fun verifyNoMoreInteractions(vararg mocks: T) {
84
84
/* *
85
85
* Verifies that no interactions happened on given mocks beyond the previously verified interactions.
86
86
*
87
- * Alias for [Mockito.verifyZeroInteractions ].
87
+ * Alias for [Mockito.verifyNoInteractions ].
88
88
*/
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
+ )
89
102
fun verifyZeroInteractions (vararg mocks : Any ) {
90
103
Mockito .verifyZeroInteractions(* mocks)
91
104
}
You can’t perform that action at this time.
0 commit comments