隨筆 - 41  文章 - 29  trackbacks - 0
          <2025年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          常用鏈接

          留言簿(5)

          隨筆分類(28)

          隨筆檔案(23)

          收藏夾(6)

          Inside JVM

          Java

          java performance

          Solr

          搜索

          •  

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          我的評(píng)論

          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.
          主站蜘蛛池模板: 五指山市| 天津市| 永安市| 泉州市| 新津县| 松江区| 栾川县| 澄迈县| 丽水市| 鄂托克前旗| 周宁县| 广饶县| 二手房| 息烽县| 东乡县| 宁晋县| 平武县| 娱乐| 秭归县| 阿巴嘎旗| 平安县| 伊春市| 子长县| 漳平市| 晋宁县| 吉木乃县| 祁东县| 兰州市| 乐东| 塔城市| 丰宁| 凯里市| 改则县| 双流县| 龙门县| 桐城市| 葫芦岛市| 山东| 江达县| 平和县| 贺州市|