
- 未来Mock测试框架jmockit
- 框架jmockit能够比传统的 JMock框架 和 EasyMock框架 做它们不能做到的事情,比如static和final的类和函数测试。
- JMockit allows you to use mock-objects to mock the behaviour of static or final code which can’t be done with traditional mock frameworks such as JMock and EasyMock.
- Mock(模仿)是什么?
- 让你把其他域或者环境中的对象隔离出来进行单元测试。
- This facility can be used for writing unit or integration tests, enabling the isolation of code under test from other parts of the codebase.
- 评论
- jmockit框架是使用Java语言重要的类java.lang.instrument实现的;
- jmockit框架的测试代码更为人性化;
- jmockit框架对于被测试代码几乎没有任何限制;
- jmockit框架正式版本尚未发布,但是可以使用它;2007年底或者2008年初发布稳定版本;
Comments
There are 0 comments on this post. Post yours →
Post a comment
Required fields in bold.