PowerMock + Mockito VS Mockito alone

前端 未结 5 890
半阙折子戏
半阙折子戏 2021-01-30 01:15

Can anyone please summarize, what exactly features gives you adding PowerMock on top of the Mockito?

So far I\'ve found these:

  • mock static, final and priva
5条回答
  •  情歌与酒
    2021-01-30 02:11

    PowerMock is an extension to Mockito that allows mocking of static methods, constructors, final classes and methods, private methods, removal of static initializers and more.

提交回复
热议问题