4

I would like to mock some service that i pass to an actor. Then i want to verify that the mocked service is called as it should. Preferably i want to pass a stub, so i can simulate a service behavior for the sake of the test.

However i don't know how i can assert that the stub was called as it should in the main thread.

Is there a way to achieve this ?

I checked the

trait AsyncAssertions

But it does not seems to solve the issue.

MaatDeamon
  • 9,532
  • 9
  • 60
  • 127

0 Answers0