We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffaddbb commit fa6a72cCopy full SHA for fa6a72c
tests/src/test/kotlin/test/MatchersTest.kt
@@ -228,6 +228,19 @@ class MatchersTest : TestBase() {
228
expect(t.varargBooleanResult("a", "b", "c")).toBe(false)
229
}
230
231
+ /** https://github.com/nhaarman/mockito-kotlin/issues/328 */
232
+ @Test
233
+ fun testRefEqForNonNullableParameter() {
234
+ mock<Methods>().apply {
235
+ /* When */
236
+ val array = intArrayOf(2, 3)
237
+ intArray(array)
238
+
239
+ /* Then */
240
+ verify(this).intArray(refEq(array))
241
+ }
242
243
244
/**
245
* a VarargMatcher implementation for varargs of type [T] that will answer with type [R] if any of the var args
246
* matched. Needs to keep state between matching invocations.
0 commit comments