隨筆 - 41  文章 - 29  trackbacks - 0
          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          常用鏈接

          留言簿(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.
          主站蜘蛛池模板: 景谷| 沙雅县| 吴川市| 武川县| 阿城市| 台东县| 安福县| 望奎县| 富顺县| 霸州市| 临猗县| 连云港市| 荥经县| 中西区| 台南市| 兰西县| 乌拉特后旗| 常熟市| 尉氏县| 舟山市| 长岭县| 安新县| 蓝田县| 蓝山县| 洮南市| 丰原市| 萨嘎县| 利川市| 乡宁县| 泌阳县| 阳城县| 栾川县| 甘德县| 鹰潭市| 黔西县| 灵武市| 清水河县| 邹城市| 铜梁县| 鲁甸县| 四子王旗|