Mocking for integration tests

后端 未结 3 1885
死守一世寂寞
死守一世寂寞 2021-01-30 13:05

How does one mock the many dependencies needed for integration tests?

I use Mockito for my \'pure\' unit tests. \'Pure\' in this case means testing a single class, mock

3条回答
  •  生来不讨喜
    2021-01-30 13:50

    If there is some http or rest mock framework, using that should be good.

    All the complicated dependencies can be recorded, modified and replayed.

提交回复
热议问题