if I have an interface like ``` interface Localsea...
# getting-started
t
if I have an interface like
Copy code
interface LocalsearchCustomerClient {
	fun <http://Customer.post|Customer.post>(): Flux<URI>
}
and a test using
Mockito
like
@Mock private lateinit var localsearchCustomerClient: LocalsearchCustomerClient
, can I mock the call somehow? I tried `Mockito.`when`(localsearchCustomerClient.run(any<LocalsearchCustomerClient.() -> Flux<URI>>())).thenReturn(Flux.empty())` but that gives me
Misplaced or misused argument matcher detected here
. or, oth, am I trying too hard to use extension functions here? should it just be
fun post(customer: Customer): Flux<URI>
?
p
Please use #mockk instead. Mockito even with mockito-kotlin is a poor mocking framework with outdated architecture and inconsitent API. Use a real mocking framework designed for Kotlin from the ground up.
t
Thanks, did not know about mockk!