I have a problem with capturing the Class argument via ArgumentCaptor. My test class looks like this:
@RunWith(RobolectricGradleTestRunner::class)
@Config(sd
For some, there is a file, MockitoKotlinHelpers.kt provided by Google in the Android Architecture repo. It provides a convenient way to call capture.. just call
verify(activityHandlerMock).navigateTo(capture(classCaptor), capture(booleanCaptor))
Update: If the above solution does not work for you, please check Roberto Leinardi's solution in the comments below.