随笔 - 41  文章 - 29  trackbacks - 0
<2024年11月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

常用链接

留言簿(5)

随笔分类(28)

随笔档案(23)

收藏夹(6)

Inside JVM

Java

java performance

Solr

搜索

  •  

最新评论

阅读排行榜

评论排行榜

我的评论

Today, i took a look at another mock framework - JMockit (https://jmockit.dev.java.net/). The creator of JMockit claims "JMockit Core consists of a single class with a small set of static methods, which allow arbitrary methods and constructors of any other class to be replaced with mock implementations at runtime. "

It overcomes two limits comparing to EasyMock,
(1) mocked classes can't simply be instantiated with the new operator in client or test code.
(2) the classes to be mocked cannot be final

However, JMockit has its own limitation: the argument matcher provided by JMockit is not easy to use comparing to Unitils.
@davos
Of course, however, because the company has the english policy, so, i have to write article in English.
@BeanSoft
Correct. That's also the reason why i loves open source. You can know the things behind. However, there is an OpenJDK now. We can learn a lot from it.
@charlie's logic
yep, i will finish it a little bit late. thank you.
BTW, the following are some related articles-
Building Web Services the REST Way
An introduction on REST
Representational State Transfer Wiki
A Brief Introduction to REST
Addressing Doubts about REST
REST Anti-Patterns

I will talk about more on how to build REST web service in next time.