You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just realized that I can't use argumentCaptor<Type?>.
I have to use the nullableArgumentCaptor for that.
After looking into the implementation I really don't get why there is an explicite argumentCaptor for nullable types.
I think most Kotlin developers would simply use argumentCaptor<Type?> and would expect that it works.
I would suggest that mockito-kotlin simply removes the nullableArgumentCatpor and return a nullable-type in the current argumentCatptor function.
What do you think?
I just realized that I can't use
argumentCaptor<Type?>
.I have to use the
nullableArgumentCaptor
for that.After looking into the implementation I really don't get why there is an explicite
argumentCaptor
for nullable types.I think most Kotlin developers would simply use
argumentCaptor<Type?>
and would expect that it works.I would suggest that
mockito-kotlin
simply removes thenullableArgumentCatpor
and return a nullable-type in the currentargumentCatptor
function.What do you think?
mockito-kotlin/mockito-kotlin/src/main/kotlin/com/nhaarman/mockitokotlin2/ArgumentCaptor.kt
Lines 35 to 37 in b8f480f
mockito-kotlin/mockito-kotlin/src/main/kotlin/com/nhaarman/mockitokotlin2/ArgumentCaptor.kt
Lines 142 to 144 in b8f480f
The text was updated successfully, but these errors were encountered: