if I have an interface like
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>
?