thanksforallthefish
06/21/2018, 2:44 PMinterface 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>
?poohbar
06/21/2018, 3:16 PMthanksforallthefish
06/21/2018, 8:19 PM