Daniele Segato
09/09/2020, 8:58 AM`when`(api.method())
.then { throw anError }
.thenReturn(something)
which basically meant: first time it is called throw anError
, second time return something
Is there a way to do something like this with MockK?Daniele Segato
09/09/2020, 9:03 AMevery { api.method() } throws anError andThen something