The class has a function:
fun theFunc(uri: Uri, theMap: Map<String, String>?, callback: ICallback) {
......
}
and would like to verify it is called with proper params type
io.mockk.verify { mock.theFunc(ofType(Uri::class), ofType(Map<String, String>::class), ofType(ICallbak::class)) }
the ofType(Uri::class)
is ok,
the ofType(Map<String, String>::class
got error:
the ofType(ICallbak::class)
got error:
ICallback does not have a companion object, thus must be initialized here.
How to use the ofType()
for Map
and interface?