本文介绍了哪个是Java的最佳隔离框架? JMock,Easymock,Mockito还是其他?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道以前曾有人问过这个问题,但上一次是在2008年中.
I realize this has been asked before, but the last time was in mid 2008.
如果您现在正在启动一个新项目,那么您将使用哪个项目,为什么?在可读性,可用性,可维护性和整体健壮性方面,它们的优缺点是什么?
If you were starting a new project right now, which one would you use and why? What are their strengths/weaknesses regarding readability, usability, maintainability, and overall robustness?
推荐答案
我之前使用过Easymock,但现在使用的是Mockito.与Easymock相比,我发现Mockito更简单.有关Easymock和Mockito的详细比较,您可以在此处
I have used Easymock earlier, but now I'm using Mockito. I found Mockito simpler as compared to Easymock. For the detailed comparison of Easymock and Mockito you can refer here
这篇关于哪个是Java的最佳隔离框架? JMock,Easymock,Mockito还是其他?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!