0

我有以下要模拟的功能:

def deployments(): Task[Seq[Deployment]]

我的 envBuilder 看起来像:

ZLayer.fromService(invoke =>
        new processEngineService.Service {
          def deployments(): Task[Seq[Deployment]] =
            invoke(Deployments)
        }
      )

我该如何设定对此的期望?

按照文档(GetStrLn returns value("42"))我试过:

ProcessEngineMock.Deployments returns value(Seq(deployment))

但这给了我:

- unsatisfied expectations
  in sequential order
    ..ProcessEngineMock.Deployments with arguments isUnit()

这是如何正确完成的?

4

0 回答 0