欢迎访问 lijingcheng3359 的个人空间

我的论坛主题

  • Mocking with Jmockit

    2009-11-25 14:20:57   /   [软件测试新手上路]

    JMockit 是用以帮助开发人员编写测试程序的一组工具和API,该项目完全基于 Java 5 SE 的 java.lang.instrument 包开发,内部使用 ASM 库来修改Java的Bytecode。When writing Unit Tests, it's often necessary to mock classes. There are several good frameworks to do this, such as EasyMock. This works fine in most cases, but it's possible to run into problems when using certain designs.EasyMock (the same is true for most other mocking frameworks) can only mock public, non static or final methods. In .
Open Toolbar