Scala: Mocking and the Cake Pattern

后端 未结 4 895
梦如初夏
梦如初夏 2021-02-03 11:32

I\'ve been trying to adopt the Cake Pattern but I\'m having difficulties adapting to this programming styles, especially where unit tests are concerned.

Lets assume that

4条回答
  •  离开以前
    2021-02-03 12:16

    Although this is an old question, I'm adding my answer for future readers. I believe this SO post - How to use mocks with the Cake Pattern - asks and answers the same thing.

    I successfully followed the answer given by Vladimir Matveev (which was the top answer at the time of writing

提交回复
热议问题