1

I mock the following function:

def deploy(deployRequest: DeployRequest, mergeResults: Seq[MergeResult]): Task[Deployment]

For the result I don't care for the inputs. So my question, is there a Way to achieve this with zio.test.mock.

Something like:

ProcessEngineMock.Deploy(any, any) returns value(deployment)

(deployment is the output)

pme
  • 14,156
  • 3
  • 52
  • 95

1 Answers1

3

Assertion.anything should do the work

psisoyev
  • 2,118
  • 1
  • 25
  • 35
  • Thanks - that is what I was looking for. However `Deploy(Assertion.anything) returns value(deployment)` gives me `unsatisfied expectations...Deploy with arguments anything()` How is this possible? `anything` would suggest there are no expectations. – pme May 01 '20 at 13:23