Closed devdavidkarlsson closed 6 years ago
Is it possible to mock a method that has a lambda argument, such as the session methods of com.github.andrewoma.kwery.core.
any() does not work for the mapper of select: mapper: (Row) -> R)
any()
mapper: (Row) -> R)
https://stackoverflow.com/questions/52389446/how-to-mock-match-lambda-in-kotlin-method-signature
Responded to on SO, need to specify type on any to match the lambda signature any<(TypeIn) -> TypeOut>()
any<(TypeIn) -> TypeOut>()
Is it possible to mock a method that has a lambda argument, such as the session methods of com.github.andrewoma.kwery.core.
any()
does not work for the mapper of select:mapper: (Row) -> R)
https://stackoverflow.com/questions/52389446/how-to-mock-match-lambda-in-kotlin-method-signature